tpetric7.github.io
RAJ 2021, Exercises with R/RStudio:
File Management
Statistics
- Chi square test
- Comments of Teacher, V1
- Comments of Teacher, V2
- Plural Markers, V1
- Plural Markers, V2
- t test
- Ordinary least squares Regression
- Politeness and Pitch, V1
- Politeness and Pitch, V2
Excel functions compared to R tidyverse
Basic NLP tasks
- Word and character count, Sentence length
- Novel comparison
- Novel original and translation
- Using regular expressions
- Wordformation suffixes
- Letter frequency, word length, syllables
- Sentiment Viewer html
Acoustic Phonetics
OLS Regression
m <- lm(frequency ~ gender + attitude, data=polite)
summary(m)
library(effects)
allEffects(m)
plot(allEffects(m), multiline=TRUE, grid=TRUE, rug=FALSE, as.table=TRUE)
NLP
library(readtext)
library(quanteda)
library(quanteda.textplots)
txt = readtext("data/books/*.txt", encoding = "UTF-8")
romane = corpus(txt)
kwic_frau = kwic(romane, pattern = "frau")
textplot_xray(kwic_frau)