This website contains the documentation for the R package qtalrkit and supplementary materials for the “An Introduction to Quantitative Text Analysis for Linguistics: Reproducible Research using R” textbook.
qtalrkit package
Installation
You can install a development version of qtalrkit from GitHub with:
install.packages("remotes")
remotes::install_github("qtalr/qtalrkit")Supplementary materials
Swirl lessons
Installation
The swirl lessons can be downloaded within an R console by running:
install.packages("swirl")
library("swirl")
install_course_github("qtalr", "Lessons")Load and run
To load and start a lesson run:
swirl()and follow the instructions to get started and to select a lesson.
Updating the lessons
If you need to update the lessons, run:
library("swirl") # Uninstall the course uninstall_course("Lessons") # Reinstall the course install_course_github("qtalr", "Lessons")
Recipes and Guides
Other supplementary reading are appear in the materials section of this site.