Skip to content

Material presented in the Spring 2022 workshop for University of Cagliari and University of Sassari, as well as in the Summer 2022 CFE Empirical Workshopas

Notifications You must be signed in to change notification settings

zachporreca/text_analysis_workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Analysis Workshop

Hey guys, it was fun getting to show you around the text analysis stuff.

The data file I was using is a bit too large to store here on github, so instead here is a link to it on Google Drive

To replicate what we went over today you will need to do the following:

  1. Download the main data file from the google drive link: here
  2. Download intro.txt and tutorial.r from the github folder
  3. Install the following packages for R:
    1. readtext
    2. quanteda
    3. quanteda.textplots
    4. ggplot2
  4. The code is commented out so you are able to see what each section is intended to do/ what question it is answering

Packages for R can be installed as follows:

1) In RStudio's top menu choose "Tools"
2) Select "Install Packages" from the drop down menu
3) Enter the names of the packages you'd like to install (seperating each by a comma)
4) Ensure that the "Install dependencies" box is checked
5) Click install

Here are some useful resources:
Regular expressions cheat sheet
Quanteda quick start guide
Quanteda commands reference

About

Material presented in the Spring 2022 workshop for University of Cagliari and University of Sassari, as well as in the Summer 2022 CFE Empirical Workshopas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages