POLS+DS Project
  • Home
  • Research Questions
  • Dataset Information
  • Code examples

Code examples


Tutorials and Examples in R

  • Exploration of Historical CampFire tweet data.
  • Getting recent tweets and accessing user profiles by Kaleb Crisci.
  • Get recent tweets by Olivia Lund and Madeline Hoshko.
  • How to make an indicator variable for if a word, words, or phrases are present in the data
  • How to get Twitter data from the command line using curl

Sampling and Hydrating Covid19 tweets

  • Employing random sampling to collect COVID tweet IDs
  • Actual data collection process for generating list of ID’s to hydrate
  • Example from the programming historian on how to hydrate tweets. [Start here]](https://programminghistorian.org/en/lessons/beginners-guide-to-twitter-data#hydrating).
    • Stop before “Outputs and how to use them” (the map)

References / other tutorials

  • https://rstudio-pubs-static.s3.amazonaws.com/1211_0417278bb8174e26bd0dcd396d639b3b.html

  • https://www.promptcloud.com/blog/data-mining-analytics-emma-watson-tweets-with-r/

  • summarytools package https://cran.r-project.org/web/packages/summarytools/vignettes/Introduction.html

Not tested, many just found via google

  • Palladio https://hdlab.stanford.edu/palladio/