R Tutorials

Code Snippets and Dataframe Wrangling

  1. Create your own psycholinguistic database (joining features to words) <click here>

  2. Dataframe wrangling (pivoting, renaming, switching between types) <click here>

  3. Group_by, Summarize, Ungroup dataframes <click here>

  4. Loading, saving, reading rda files and downloading from a Github repo <click here>

  5. Loops, functions, data transformations <click here>

  6. Read data into R from the OSF <click here>

graphic design and plotting

  1. animation in R using gganimate <click here>

  2. plots, plots, plots — tons of plots annotated from our lab <click here>

  3. plot pubmed citation count for a subject title by year (how to?) <click here>

  4. table formatting for RMarkdown using KableExtra <click here>

statistics (how to & demos)

  1. Descriptive statistics <click here>

  2. Equivalence testing <click here>

  3. Exploratory factor analysis (EFA) <click here>

  4. Exporting summary data from R to tables (e.g., MS Word) <click here>

  5. Linearity test (rainbow test) <click here>

  6. Time series (rolling means, smoothing, interpolation) <click here>

Text, Text Mining, & NLP

  1. Code snippets for string manipulation <click here>

  2. Producing corpus analytics from your language sample <click here>

  3. Introduction to Quanteda for analytics on multi-document corpora <click here>

  4. ngram tokenization <click here>

  5. Regex for R <click here>

  6. Sample 1: tagging arousal to every word of Goodfellas <click here>

  7. Sample 2: text analysis of the Unabomber Manifesto <click here>

  8. String Wrangling (split, unlist, etc.) <click here>

  9. Time series motif detection (e.g., recurring patterns in a jazz solo) <click here>

  10. Topic models <click here>

Psycholinguistics: working with lookup data