Rr-statistics.co
The Compendium · r-statistics.co

The Compendium

Practical statistics and R, written for working data scientists. Curated reading paths to begin, the full archive to depth.

  Reading paths · curated sequences for specific goalsWhere to start when you don't know where to start.
Beginner5 articles

First week with R

Foundation — syntax, types, your first analysis. For someone opening RStudio for the first time.

Intermediate6 articles

Becoming fluent in dplyr

From basic verbs to grouped operations to joins. The data-wrangling stack you'll use every day.

Intermediate6 articles

From t-tests to regression

The full progression from comparing two groups to fitting linear models. Everything you'll actually use.

Advanced3 articles

Forecasting in production

Time-series done with discipline — from stationarity to backtesting and what you'll actually deploy.

Section 01

Learn R

All 34 in Learn R →

Is R Worth Learning?

Is R Worth Learning in 2026? The Honest Answer [Data]

Beginner9 min

Install R & RStudio

A Clean First Setup

Beginner8 min

RStudio IDE Tour

The Only IDE Tour You'll Ever Need

Beginner9 min

R Syntax 101

Write Your First Working Script in 10 Minutes

Beginner10 min

R Data Types

Know What Your Variable Is

Beginner8 min

R Vectors

The Foundation of R

Beginner7 min

R Matrices

Fast Linear Algebra, the Basics

Beginner5 min

R Factors

Levels, Ordering, and Common Pitfalls

Beginner6 min
Section 02

Data Wrangling

All 29 in Data Wrangling →

Importing Data

CSV, Excel, JSON and More

Intermediate5 min

Pipe Operator

%>% vs |>, The Complete Guide to Both Pipes

Intermediate5 min

Tidy Data

The One Rule That Makes R Code Readable, Reusable, and Debuggable

Intermediate7 min

dplyr filter & select

Subset Data Fast

Intermediate4 min

dplyr mutate & rename

Create and Transform Columns

Intermediate5 min

dplyr group_by & summarise

10 Worked Examples

Intermediate7 min

dplyr arrange & slice

15 Sorting Recipes

Intermediate8 min

dplyr across()

Apply Functions to Many Columns

Intermediate5 min
Section 03

Statistics

All 134 in Statistics →

Automated EDA

Get a Full Data Profile in 5 Minutes (3 Packages Compared)

Intermediate11 min

Missing Data Viz (naniar)

Visualise Missing Data in R With naniar (3 Lines)

Intermediate12 min

Outlier Detection

4 Methods Compared

Intermediate11 min

Probability Axioms

Prove the Rules of Probability via Monte Carlo Simulation

Intermediate11 min

Conditional Probability

P(A|B) Made Concrete

Intermediate11 min

Random Variables

PMF, PDF and CDF Explained

Intermediate12 min

Binomial vs Poisson

Which Fits Your Count Data

Intermediate10 min

Normal, t, F, Chi-Squared

When Each Arises in R

Intermediate11 min
Section 04

Visualization

All 42 in Visualization →

Grammar of Graphics

ggplot2's Mental Model

Beginner10 min

ggplot2 Getting Started

Build 5 Real Charts in 30 Minutes, Zero Experience Needed

Beginner9 min

ggplot2 Aesthetics (aes)

Map Data to Visuals

Beginner9 min

ggplot2 Colours

Palettes That Actually Work

Beginner11 min

ggplot2 Scales

Axes, Colours and Sizes Explained

Beginner10 min

ggplot2 Themes

Build Your Own House Style

Beginner10 min

Labels & Annotations

ggplot2 Labels and Annotations, Done Cleanly

Beginner9 min

ggplot2 Facets

Multi-Panel Plots, Done Right

Beginner8 min
Section 05

Time Series

All 48 in Time Series →

Time Series Analysis

A Complete Walkthrough

Intermediate

Time Series Forecasting

Intermediate

More Time Series Forecasting

Advanced Time Series Forecasting in R

Intermediate

Time Series Quiz

Earn the Certificate

Intermediate

Test Stationarity

ADF, KPSS, and Differencing

Intermediate22 min

Time Series Objects

ts, xts, zoo, or tsibble?

Intermediate17 min

Visualize Time Series

autoplot(), Seasonal, Lag Plots

Intermediate24 min

ACF and PACF

How to Read the Plots for ARIMA Orders

Intermediate17 min
Section 06

Advanced R

All 29 in Advanced R →

Functional Programming

The Mindset That Makes Your Code 10× Cleaner

Advanced9 min

Functional Programming Quiz

Earn the Certificate

Advanced

purrr map() Variants

Every Variant, One Mental Model

Advanced11 min

R Anonymous Functions

The New Lambda Syntax

Advanced7 min

R Function Factories

How to Build Customisable Functions That Generate Functions

Advanced8 min

R Function Operators

Transform Existing Functions Without Rewriting Them

Advanced9 min

Reduce, Filter, Map

Reduce(), Filter(), Map() in Base R, Explained

Advanced10 min

Memoization in R

Cache Expensive Function Calls

Advanced8 min
Section 07

Classic Tutorials

All 9 in Classic Tutorials →

R Tutorial (Classic)

R Programming Tutorial

Beginner

ggplot2 Short Tutorial

How to Make Any Plot in R (40+ Examples)

Beginner

ggplot2 Tutorial 1 - Intro

ggplot2 Tutorial Part 1

Beginner

ggplot2 Tutorial 2 - Theme

ggplot2 Tutorial Part 2

Beginner

ggplot2 Tutorial 3 - Masterlist

Top 50 ggplot2 Examples in R

Beginner

Association Mining

Association Rule Mining in R

Beginner

Multi Dimensional Scaling

Multidimensional Scaling in R

Beginner

Optimization

Beginner
Section 08

Practice Exercises

All 158 in Practice Exercises →

R Interview Questions (Top 50)

50 R Interview Questions and Answers, Solved (2026)

Intermediate31 min

Statistics Interview Questions (25)

25 Solved Problems

Intermediate19 min

ML Interview Questions (25)

25 Solved Problems

Intermediate18 min

Top 20 Bayesian Problems

Intermediate16 min

Probability Puzzles (Top 20)

Top 20 Probability Puzzles for Data Science Interviews

Intermediate16 min

A/B Testing Interview Cases (20)

20 Solved in R

Intermediate15 min

SQL to dplyr (30 Translations)

30 Translations Every Analyst Needs

Intermediate15 min

Top 25 Regression Problems

Intermediate18 min