Free hands-on data courses R, Python and SQL

Learn data analysis by doing, in your browser.

Work with realistic data in short courses using R, Python and SQL. Write code, see the result and get feedback as you go. Nothing to install.

Free to start no account needed progress saved in this browser

Inside a lesson · dplyrapp.rsquaredacademy.com
A real dplyr lesson: filter keeps the Large sales while the other rows fade away.
Watch filter() keep the rows that match. Open this lesson.

The learning experience

What's inside

Read a little. Try it. See what happens.

  • Illustration: three lines of R code, a Run button and a bar chart appearing below

    01 / In the browser

    Code runs in your browser

    Write and run R, Python or SQL beside the lesson. Nothing to install.

  • Illustration: a line of ggplot2 code with a highlighted blank and geom_col() filling it, above a bar chart

    02 / Guided practice

    Four page types

    Read and quiz / Fill the gaps / Fix the code / Write it yourself.

  • Illustration: R code that computes an average, with a green Correct banner explaining the result

    03 / Check your thinking

    Instant feedback

    See whether your answer is right and what to check next.

  • Illustration: a filter() call with a mistake, a Not yet message and a hint saying to use == to compare

    04 / A little help

    Hints, one at a time

    Ask for the next hint when you need a little guidance.

  • A step-through in three steps: a small table of products and sizes, the two Large rows highlighted by filter(size == "Large"), then only those two rows kept.

    05 / See the idea

    Step-through diagrams

    Follow each dplyr step as it changes the table.

  • The Datasets panel: sales.csv (160 rows, 7 columns) expanded to its first rows, with stores.csv (9 rows, 6 columns) below.

    06 / Know your data

    Datasets panel

    Keep the course datasets, columns and first rows beside your code.

Two report cards from the Intro to Python course home, from the shop owner’s 2025 data: 4,182 completed orders, ₹65.65 lakh revenue and a ₹1,570 average order; and order ORD-03159 labelled with its total to pay, ₹10,994.00.

07 / Work towards a result

See what you’ll build

Each course home shows the report you’ll build for the shop owner, one lesson at a time.

  • Real numbers from the course data
  • The code you’ll write to get each one
  • Free courses in R, SQL and Python
First six visits: Plan it asks five questions about the result row, columns, tables, included rows and order. Below, What did I just do? explains SELECT session_id, device_category, traffic_source; FROM sessions; and LIMIT 6.

08 / Plan your SQL

Plan the query, then see what it did

SQL write pages give you a Plan it card, and after a correct answer, what each clause did.

  • Plan it: the questions to answer before you write
  • What did I just do?: each clause in plain words
  • On every SQL write page

Pick up where you left off. Progress is saved in this browser.

Free foundations courses

Build tables and charts with R

Start with your first line of R. Then turn the same Bean & Barrel data into clean tables and clear charts.

  1. citycountryrevenue_usdNairobiKenya1627.95LisbonPortugal701.69TorontoCanada1334.57VancouverCanada956.19BerlinGermany1050.51MontrealCanada1122.52
    Course 1Free

    Introduction to R

    Write your first R code: values, vectors, data frames and functions.

  2. countryrevenueCanada1137.76Germany839.05India1121.72Kenya1627.95Portugal701.69
    Course 2Free

    Data Wrangling with dplyr

    Filter, sort, summarise and join data with the dplyr verbs and the pipe.

  3. 05001,0001,500CanadaGermanyIndiaKenyaPortugal
    Course 3Free

    Data Viz with ggplot2

    Build clear charts layer by layer with ggplot2.

Intro to SQL is also open and free: all 13 lessons. Intro to Python is coming soon. See all courses

How it works

A little reading.
A lot of doing.

Read a short lesson, write code in your browser and get instant feedback.

Each idea comes with a small, realistic dataset, explained in plain words. Find out straight away whether your answer is right, and what to fix if it isn't.

How you'll learn

Each lesson takes one idea and climbs four steps, from watching it done to doing it yourself.

How learning works here (1 min)

How learning works here (61 s)
  1. 1

    See it worked

    A short worked example shows the idea on the course data, with its answer.

  2. 2

    Fill in the blanks

    Complete a few missing pieces of working code.

  3. 3

    Fix the bug

    Find the mistake in code that does not work yet.

  4. 4

    Write it yourself

    Start from a blank script and answer a question with your own code.

Built by the author of olsrr, descriptr and rfm

Learn from an experienced data science consultant, author of popular R packages and eBooks

2.9 million downloads

  • olsrr R package logo
  • blorr R package logo
  • descriptr R package logo
  • inferr R package logo
  • vistributions R package logo
  • rbin R package logo
  • rfm R package logo
  • xplorerr R package logo
  • yahoofinancer R package logo
  • standby R package logo

CRAN downloads, all time, through .

Source: cranlogs download totals. Posit CRAN mirror only; other mirrors are not counted. Available logs start in October 2012. Downloads are not a count of people.

Explore our open-source work

6 public eBooks

  • Introduction to R eBook cover
  • Data Wrangling with R eBook cover
  • Data Visualization with ggplot2 eBook cover
  • R, Databases & SQL eBook cover
  • Command Line Basics for R Users eBook cover
  • Data Visualization with Base R eBook cover

Free to read online, from your first R code to wrangling, charts and SQL.

Browse the free eBooks
Coming 2027

Paid tracks coming in 2027

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.