Back to Toolkit

R Learning Resources

A curated collection of open-source R learning resources for longitudinal data analysis and research workflows.

All resources marked with Open Source are freely available.

Tip: Start with a learning path below, or filter by category, level, or topic. Items marked are particularly good starting points.

Start Here

Choose a learning path based on your experience level and goals.

Foundational

Start Here: R Fundamentals

Best for: No prior R experience

Learn core R syntax, data structures, and visualization before tackling statistical models.

1.R for Data Science (Book)
2.Introduction to R tutorial
3.R Programming Tutorial video
4.Base R Cheatsheet
Intermediate

Start Here: Longitudinal Analysis

Best for: Comfortable with R basics and regression

Move from cross-sectional analysis to mixed models and growth curves for repeated-measures data.

1.Linear Mixed Models guide
2.lme4 package documentation
3.Latent Growth Curve Models guide
4.lavaan package documentation
Advanced

Advanced: SEM & Bayesian Methods

Best for: Experienced with mixed models, ready for advanced techniques

Explore structural equation modeling, Bayesian approaches, and specialized longitudinal techniques.

1.Advanced R (Book)
2.lavaan and semTools packages
3.brms for Bayesian models
4.Statistical Learning videos (Stanford)

Showing all 47 resources

Level:
Topic:

Books

From R fundamentals to advanced mixed models and SEM—these texts cover the methods essential for longitudinal research.

R for Data Science (2e)
FoundationalOpen Source

R for Data Science (2e)

Hadley Wickham, Mine Cetinkaya-Rundel & Garrett Grolemund

The essential introduction to modern R and the tidyverse. Covers the complete data science workflow from import to communication.

Hands-On Programming with R
FoundationalOpen Source

Hands-On Programming with R

Garrett Grolemund

Learn R by building real projects. A practical, hands-on introduction focusing on programming fundamentals.

R Programming for Data Science
FoundationalOpen Source

R Programming for Data Science

Roger D. Peng

A solid introduction to R programming for data science from Johns Hopkins. Covers fundamental concepts and practical techniques.

The Pirate's Guide to R (YaRrr!)
FoundationalOpen Source

The Pirate's Guide to R (YaRrr!)

Nathaniel D. Phillips

A fun, accessible introduction to R with a pirate theme. Great for absolute beginners who want an engaging learning experience.

R Cookbook (2e)
IntermediateOpen Source

R Cookbook (2e)

James (JD) Long & Paul Teetor

Practical recipes for common R tasks. Each recipe solves a specific problem with working code examples.

ggplot2: Elegant Graphics for Data Analysis (3e)
IntermediateOpen Source

ggplot2: Elegant Graphics for Data Analysis (3e)

Hadley Wickham, Danielle Navarro & Thomas Lin Pedersen

The definitive guide to ggplot2 and the grammar of graphics. Essential for creating publication-quality visualizations.

Efficient R Programming
IntermediateOpen Source

Efficient R Programming

Colin Gillespie & Robin Lovelace

Write faster, more efficient R code. Covers profiling, optimization, and best practices for production workflows.

The Art of R Programming
Intermediate

The Art of R Programming

Norman Matloff

A deeper dive into R as a programming language. Covers data structures, debugging, and software development practices.

Advanced R (2e)
AdvancedOpen Source

Advanced R (2e)

Hadley Wickham

Master R's internals: environments, functional programming, metaprogramming, and performance optimization.

Deep R Programming
AdvancedOpen Source

Deep R Programming

Marek Gagolewski

An in-depth exploration of R programming, covering advanced topics from a computer science perspective.

R Inferno
AdvancedOpen Source

R Inferno

Patrick Burns

A guide to R's circles of hell - common pitfalls, gotchas, and how to avoid them. Essential reading for serious R users.

Software for Data Analysis: Programming with R
Advanced

Software for Data Analysis: Programming with R

John M. Chambers

From the creator of S and R. Deep insights into R's design philosophy and programming paradigms.

Videos

Video courses and tutorials covering R programming, statistical modeling, and data analysis workflows.

Tutorials

Hands-on interactive tutorials for learning R syntax, data wrangling, and statistical concepts at your own pace.

Cheatsheets

Quick reference guides for R syntax, tidyverse verbs, and common statistical functions—keep these handy.

R Packages

Core packages for mixed models, growth curves, SEM, Bayesian methods, and missing data handling used throughout longitudinal.dev.

tidyverse
FoundationalOpen

Collection of R packages for data science: ggplot2, dplyr, tidyr, readr, and more. The modern R workflow.

ggplot2
FoundationalOpen

Create elegant, publication-quality graphics using the grammar of graphics. The gold standard for R visualization.

dplyr
FoundationalOpen

A grammar of data manipulation. Filter, select, mutate, summarize, and join data with intuitive verbs.

lme4
IntermediateOpen

The workhorse for linear and generalized linear mixed-effects models. Essential for longitudinal analysis.

nlme
IntermediateOpen

Linear and nonlinear mixed-effects models. More flexible correlation structures than lme4.

lmerTest
IntermediateOpen

Adds p-values and hypothesis tests to lme4 models using Satterthwaite and Kenward-Roger approximations.

glmmTMB
IntermediateOpen

Generalized linear mixed models with flexible distributions: zero-inflation, beta, negative binomial, and more.

lavaan
IntermediateOpen

Latent Variable Analysis. Fit structural equation models, growth curves, and confirmatory factor analysis.

semTools
AdvancedOpen

Extensions for lavaan: measurement invariance, reliability, missing data, and model comparison utilities.

OpenMx
AdvancedOpen

Advanced SEM and matrix algebra. Maximum flexibility for complex models including twin studies.

blavaan
AdvancedOpen

Bayesian SEM using lavaan syntax. Integrates with Stan and JAGS for MCMC estimation.

brms
AdvancedOpen

Bayesian regression models using Stan. Multilevel models, GAMs, and more with intuitive R formula syntax.

rstanarm
AdvancedOpen

Bayesian applied regression modeling via Stan. Pre-compiled models for faster iteration.

geepack
IntermediateOpen

Generalized Estimating Equations for population-averaged models with correlated data.

mgcv
IntermediateOpen

Generalized Additive Models with smooth terms. Flexible modeling of nonlinear relationships.

mice
IntermediateOpen

Multivariate Imputation by Chained Equations. The standard for multiple imputation in R.

Amelia
IntermediateOpen

Multiple imputation for cross-sectional and time-series data using bootstrapping and EM algorithm.

patchwork
FoundationalOpen

Combine multiple ggplot2 plots into a single figure with intuitive operators.

gganimate
IntermediateOpen

Create animated visualizations showing change over time. Perfect for longitudinal data.