tpetric7.github.io

Follow me on GitHub

tpetric7.github.io

RAJ 2021, Exercises with R/RStudio:

File Management

Statistics

Excel functions compared to R tidyverse

Basic NLP tasks

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)

Plot 1

Plot 2

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)

Plot 3

Vowel formants in L1 / L2 German

Plot 4

Plot 5