R Foundations — Online Course

Learn R from zero — run real code in your browser and leave able to load data, run statistics and make plots.

Learn R from zero — run real code in your browser and leave able to load data, run statistics and make plots.

Free & open — every video lesson, the exact R code, a downloadable .R script and the in-browser playground. No sign-up, no paywall.

Start with lesson 1   Browse all courses

The course

What you’ll learn

  • Use R as a calculator and store values in variables
  • Work with vectors and data frames — R’s core data structures
  • Make histograms, scatter plots and boxplots
  • Run your first t-test, correlation and regression

Curriculum

15 short video lessons — each with the exact R code, a downloadable script and a live browser console. Work through them in order.

1 ### R Basics R as a calculator, variables, functions and comments — the essentials.

2 ### Vectors in R Create, index and do maths on many values at once.

3 ### Data Types in R Numbers, text, TRUE/FALSE and factors — and how to convert between them.

4 ### Subsetting & Indexing Pull out exactly the elements, rows and columns you want.

5 ### Logical Conditions & if/else Comparisons, & | %in%, and branching with if/else and ifelse().

6 ### Data Frames in R Build a table, pull columns, filter rows and explore data.

7 ### Factors: Categorical Data Store categories, set their order, and use them in models and plots.

8 ### Missing Values (NA) Find, ignore, drop or fill the gaps in real data.

9 ### Reading Data into R Import a CSV, set the working directory and inspect what you loaded.

10 ### Writing Your Own Functions Package repeated steps into a reusable function with arguments.

11 ### Installing & Loading Packages install.packages(), library() and CRAN — extend base R.

12 ### Your First Plot in R Histograms, scatter plots, a trend line and boxplots.

13 ### Basic Statistics in R Summaries, a t-test, correlation and a linear model.

14 ### Data Wrangling with dplyr filter, select, mutate, group_by and summarise — tidy data manipulation.

15 ### The Pipe (|>) Chain steps into a readable top-to-bottom pipeline.

Everything included

  • 15 video lessons — watch in the browser, free, with English subtitles.
  • 📄 Download every R script full-course R script
  • 🧪 Run the code live on each lesson page and in the course playground — no install.

Free & open — every video lesson, the exact R code, a downloadable .R script and the in-browser playground. No sign-up, no paywall.

Start the course   Browse all courses