Course details
R Programming
Learn the core of R, the language statisticians built for working with data. You install R, then learn its syntax, types, vectors, lists, data frames and functions on one small community-garden harvest log, so every idea builds on the last.
Course curriculum
Introduction and Setup5 lessons
See where R fits next to Python, install R and an editor, write and run a first script, add packages from CRAN, and pin a project's package versions with renv so it runs the same anywhere.
Basic Syntax5 lessons
Name values with the assignment arrow, compute on whole vectors with R's operators, chain steps with the native pipe, make decisions with if and ifelse(), and repeat work with for and while loops.
Data Types4 lessons
Meet R's basic types: doubles, integers and complex numbers, character text, and logical values with NA for the unknown. Then learn the coercion ladder R climbs when types mix, and how to convert on purpose.
Data Structures5 lessons
Store the harvest log in each of R's core structures: vectors with 1-based indexing and recycling, lists for mixed items, matrices and arrays for grids, factors for categories, and data frames, tibbles and data.table for tables.
Functions4 lessons
Package code as functions with arguments and defaults, learn where R looks up a name, solve self-similar problems with recursion, and replace loops with lapply, sapply, vapply, apply and tapply.
