Introduction to R
Write your first R code: values, vectors, data frames and functions.
Free interactive courses with instant feedback. Nothing to install.

Each idea comes with a small, realistic dataset, explained in plain words.
Type code into the lesson and run it. There is nothing to install.
Find out straight away whether your answer is right, and what to fix if it isn't.
Each lesson takes one idea and climbs four steps, from watching it done to doing it yourself.
A short worked example shows the idea on the course data, with its answer.
Complete a few missing pieces of working code.
Find the mistake in code that does not work yet.
Start from a blank script and answer a question with your own code.
We're rebuilding our courses and learning platform from scratch, so you can learn R, Python and SQL in your browser with instant feedback. The first three free courses, in R, open soon.
Write your first R code: values, vectors, data frames and functions.
Filter, sort, summarise and join data with the dplyr verbs and the pipe.
Build clear charts layer by layer with ggplot2.
The courses are built from our free eBooks, so you can read ahead or look back at any time.
Our open-source R packages have been downloaded more than 2.8 million times.
Source: downloads from the Posit CRAN mirror (cranlogs), October 2026. Other mirrors are not counted.
Read, watch and practise at your own pace.
Data Analyst with R, Data Analyst with Python and SQL for Data Analysts. Each track builds on one realistic business dataset. See the full descriptions.
Hear when the free courses open. We email about once a month.
No spam. Unsubscribe any time. Privacy