AITeky Learn

R Programming

R for data analysis, charts and statistics: the tidyverse, ggplot2 and the models health, pharma and insurance teams use.

All 42 Documents 12 Books 27 Courses 3
All levels Beginner Intermediate Advanced Expert

AiTeky Originals

Our own lessons in plain English. Run the code right here and check your answers as you go.

All 5 R Programming originals →
Interactive Learning & PracticeBeginner 6 lessons · ▶ code runs in your browser R basics: your first steps in the language of statistics Vectors, missing values, data frames, functions and loops in R, then two real jobs: a shop's sales report and a messy used-car file, all run in your browser. Interactive Learning & PracticeBeginner 6 lessons · ▶ code runs in your browser The tidyverse: handle tables the way R teams do today Filter, select, sort, add columns, group and total, join tables and reshape them with dplyr and tidyr, then build a branch report against targets and a telecom churn table. Interactive Learning & PracticeBeginner 6 lessons · ▶ code runs in your browser Charts with ggplot2: clear pictures from data in R Build charts layer by layer with ggplot2: scatter plots, bars, histograms, box plots, lines, colour, small multiples, scales and themes, then a sales chart pack, a misleading chart fixed and a used-car price chart. Interactive Learning & PracticeIntermediate 7 lessons · ▶ code runs in your browser Statistics in R: tests, intervals and models the way analysts use them Describe data, give honest margins of error, test differences in means and rates, fit linear and logistic regression, and plan a test's sample size in R, then report an A/B test and a loan-default model. Interactive Learning & PracticeIntermediate 6 lessons · ▶ code runs in your browser R for health, pharma and insurance: trials, survival curves and claim models Analyse a blood-pressure trial, draw Kaplan-Meier curves, compare treatments with the log-rank test and Cox model, and price motor insurance with Poisson claim models, then write a trial readout and a pricing note.

Beginner

Start here. No background needed beyond school maths.

Document Beginner ↗ External site

An Introduction to R (official manual)

Expert's own introduction: vectors, data frames, functions, statistical models and graphics, straight from the people who maintain R.

Course Beginner ↗ External site

Data Analysis and Visualisation in R for Ecologists

A beginner workshop lesson on loading, cleaning, summarising and charting field data in R with the tidyverse. Useful for anyone with survey or field data.

Book Beginner ↗ External site

Data Visualization: A Practical Introduction

A social scientist's guide to making good charts in ggplot2, from first plots to maps and model results.

Book Beginner ↗ External site

Fundamentals of Data Visualization

How to choose and design honest, clear charts, with every example made in ggplot2. About judgement more than code.

Book Beginner ↗ External site

ggplot2: Elegant Graphics for Data Analysis (3rd edition)

The ggplot2 book by its author: layers, scales, coordinates, facets and themes, explained from the grammar of graphics up.

Book Beginner ↗ External site

Hands-On Programming with R

Learn R as a programming language by building small projects: a dice roller, a deck of cards and a slot machine. Covers objects, functions, loops and environments gently.

Book Beginner ↗ External site

Happy Git and GitHub for the useR

A friendly guide to using Git and GitHub from R and RStudio: installing, connecting, committing and working with others on R projects.

Book Beginner ↗ External site

Introduction to Data Science (Data Analysis and Prediction Algorithms with R)

A Harvard professor's free book: R, the tidyverse, charts, probability, inference, regression and machine learning, taught through real case studies.

Book Beginner ↗ External site

Introduction to Modern Statistics

A free, modern statistics textbook with R tutorials: exploring data, regression, inference by simulation and by formula.

Document Beginner ↗ External site

Quarto: Get Started

Write reports, slides and websites that mix text with R code and its results. Quarto is the successor to R Markdown and also works with Python.

Book Beginner ↗ External site

R for Data Science (2nd edition)

The standard free book for learning R the modern way: importing, tidying, transforming and charting data with the tidyverse, then communicating results with Quarto.

Course Beginner ↗ External site

R for Reproducible Scientific Analysis

A free lesson used in workshops worldwide: R basics, data frames, dplyr, ggplot2 and writing reusable functions, using a world development dataset.

Book Beginner ↗ External site

R Graphics Cookbook (2nd edition)

Hundreds of short recipes for ggplot2 charts: bar charts, line charts, scatter plots, annotations, colours and legends, each with code you can copy.

Book Beginner ↗ External site

R Markdown: The Definitive Guide

Everything about R Markdown documents: reports, presentations, dashboards and books built from text and R code.

Book Beginner ↗ External site

R Programming for Data Science

A short, practical book on R as a language for data work: reading data, control structures, functions, loops, debugging and simulation.

Document Beginner ↗ External site

RStudio and Posit Cheatsheets

One-page printable summaries for dplyr, tidyr, ggplot2, stringr, lubridate, Shiny, R Markdown and more. Keep them open while you practise.

Document Beginner ↗ External site

Shiny: Get Started

The official step-by-step tutorial for building your first Shiny app in R, from layout and inputs to reactive outputs and sharing the app.

Book Beginner ↗ External site

Statistical Inference via Data Science (ModernDive)

Introductory statistics taught with R and the tidyverse: regression, sampling, bootstrapping, confidence intervals and hypothesis tests.

Course Beginner ↗ External site

swirl: Learn R Inside R

An interactive course that runs inside your own R console: it asks questions, checks your answers and teaches R basics, data cleaning and statistics step by step.

Book Beginner ↗ External site

The Epidemiologist R Handbook

A practical R manual written by field epidemiologists: cleaning case data, epidemic curves, survival, maps, outbreak reports and dashboards, with real public health examples.

Document Beginner ↗ External site

Tidyverse: Learn the Tidyverse

The ••••'s own starting page: which book to read, which package does what, and where to find help for dplyr, tidyr, readr and ggplot2.

Advanced

Once the core skills are comfortable.

Document Advanced ↗ External site

admiral: ADaM Datasets in R

An open-source R package for building the analysis datasets (ADaM) that clinical trial reports are made from, with worked examples.

Book Advanced ↗ External site

Advanced R

How R really works: environments, functions, object systems, metaprogramming and performance. Read it once the basics feel easy.

Book Advanced ↗ External site

Bayes Rules! An Introduction to Applied Bayesian Modeling

A friendly introduction to Bayesian statistics with R: priors, posteriors, regression and hierarchical models, with plenty of worked examples.

Document Advanced ↗ External site

CRAN Task Views

Curated lists of the best R packages by subject: clinical trials, survival analysis, econometrics, finance, spatial data, time series and many more.

Book Advanced ↗ External site

Geocomputation with R

Working with maps and spatial data in R: points, boundaries, rasters, map making and spatial modelling with sf and terra.

Document Advanced ↗ External site

gtsummary: Publication-Ready Tables

Make baseline tables and model result tables in R that are ready for a paper or a clinical report, in a few lines of code.

Book Advanced ↗ External site

Introduction to Econometrics with R

An econometrics course in R: regression, panel data, instrumental variables and time series, with interactive examples.

Book Advanced ↗ External site

Loss Data Analytics

A free, open actuarial textbook with R code: claim frequency and severity models, credibility, pricing and insurance portfolio management.

Book Advanced ↗ External site

Mastering Shiny

Build interactive web apps and dashboards in R with Shiny: inputs, outputs, reactivity, modules and testing.

Book Advanced ↗ External site

Modern Statistics for Modern Biology

Statistics for biologists with R and Bioconductor: testing, clustering, multivariate methods and high-throughput data.

Book Advanced ↗ External site

Orchestrating Single-Cell Analysis with Bioconductor

How to analyse single-cell gene expression data in R with Bioconductor: quality control, normalisation, clustering and marker genes.

Document Advanced ↗ External site

pharmaverse: Open-Source R for Clinical Reporting

A collection of open-source R packages, built by drug companies together, for producing clinical trial datasets and reports in R.

Book Advanced ↗ External site

R for Clinical Study Reports and Submission

How to produce the tables, listings and figures of a clinical study report in R, and prepare an R-based submission to a drug regulator.

Book Advanced ↗ External site

R Packages (2nd edition)

How to turn your R functions into a proper package with documentation, tests and checks, the way professional R teams share code.

Document Advanced ↗ External site

renv: Project Environments for R

Keep each R project's package versions recorded and repeatable, so a colleague or a server gets the same results months later.

Document Advanced ↗ External site

Survival Analysis in R (tutorial)

A clear tutorial on time-to-event data in R: censoring, Kaplan-Meier curves, the log-rank test, Cox regression and reporting the results.

Book Advanced ↗ External site

Telling Stories with Data

A complete workflow for data science in R: gathering data, cleaning, modelling, writing it up and making the work reproducible, with real examples.

Book Advanced ↗ External site

Text Mining with R

Tidy text analysis in R: word counts, sentiment, tf-idf, word pairs and topic models, using the tidytext package.

Document Advanced ↗ External site

The survival Package: Survival Analysis Vignette

The survival package's own guide by its author: Surv objects, survfit, coxph, checking proportional hazards and more advanced models.

Book Advanced ↗ External site

The targets R Package User Manual

Build R analysis pipelines that only re-run the steps whose inputs changed. Useful for long reports and model pipelines.

Book Advanced ↗ External site

Tidy Modeling with R

How to build, tune and check machine learning models in R with the tidymodels packages: splitting data, recipes, resampling and model comparison.

More in AI & Data Science

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in