Overview
R is a programming language and software environment for statistical computing and graphics. It provides a wide variety of statistical techniques and graphical techniques through its extensive package ecosystem (CRAN with 19,000+ packages).
Key Features
- Statistical computing — Built-in support for statistical tests, models, and distributions
- ggplot2 — Grammar of graphics for publication-quality visualization
- CRAN — Over 19,000 contributed packages
- R Markdown — Reproducible reports combining code, results, and narrative
- Vectorized operations — Operate on entire vectors/matrices without explicit loops
Code Example
r
Learning Resources
Learning Path
13 topics across 4 sections
1Basics
- Introduction to R — RStudio, REPL, and the R ecosystem
- Data Types — Vectors, factors, matrices, lists, and data frames
- Operators & Control Flow — Vectorized operations, if/else, for, apply family
- Functions — Function definition, scoping, and anonymous functions
2Data Manipulation
- Tidyverse — dplyr, tidyr, stringr, and the pipe operator (%>%)
- Data Import/Export — readr, readxl, and database connections
- Data Wrangling — filter, mutate, group_by, summarise, joins
3Visualization
- ggplot2 — Grammar of Graphics, geoms, aesthetics, and themes
- Interactive Plots — plotly, Shiny dashboards, and htmlwidgets
- R Markdown — Reproducible reports, Quarto, and literate programming
4Statistics & ML
- Statistical Tests — t-test, chi-square, ANOVA, and regression
- Machine Learning — caret, tidymodels, random forests, and cross-validation
- Time Series — ARIMA, forecasting, and zoo/xts packages