LanguagesData

R Programming roadmap

Learn R to clean, explore, chart and model data, and to share your results as clear, repeatable reports.

  • About 3 to 5 months
  • 6 to 8 hours a week
  • 5 stages

Tick each stage as you finish it. Your progress stays on this device.

Start stage 1

Time needed

About 3 to 5 months

6 to 8 hours a week. You do not need programming experience. Comfort with spreadsheets helps a lot.

Before you start

  • You are comfortable with spreadsheets
  • You know simple statistics ideas such as an average and spread
  • You can install software and follow written steps

Not covered here

Building large software systems and deep learning. R is strongest for analysis, statistics and reporting.

  1. Stage 13 weeks

    R and RStudio basics

    Write and run your first scripts and load real data.

    Learn

    • Installing R and an editor
    • Vectors, data frames and functions
    • Reading CSV and Excel files
    • Packages and how to load them
    • Scripts, and how they differ from notebooks
    • Finding help when stuck

    Tools

    • R
    • RStudio or Positron
    • The tidyverse packages

    Build

    • Load a public dataset and answer five questions about it in a script
    • Share the script so someone else can run it

    CheckpointSomeone else can run your script from top to bottom and get the same answers.

  2. Stage 23 to 4 weeks

    Clean and reshape data

    Turn messy files into tidy tables you can trust.

    Learn

    • The idea of tidy data
    • Filtering, selecting, creating and summarising columns
    • Joining tables
    • Dates and text
    • Handling missing values
    • Switching between wide and long tables

    Tools

    • dplyr
    • tidyr
    • lubridate and stringr

    Build

    • Clean a messy real-world file and write down every change you made
    • A table that combines two data sources

    CheckpointYour cleaned data holds no surprises and you can list each fix.

  3. Stage 33 weeks

    Explore and chart

    Find patterns and show them so a reader understands at once.

    Learn

    • The grammar of graphics in ggplot2
    • Choosing the right chart
    • Summaries and distributions
    • Labels and colours that everyone can read
    • Spotting outliers
    • Asking the next question

    Tools

    • ggplot2
    • A package for combining charts
    • Colour-blind-safe palettes

    Build

    • Six charts that tell one clear story about a dataset, each with a plain caption
    • A one-page chart style guide

    CheckpointA reader gets your main point from the charts in under a minute.

  4. Stage 44 to 5 weeks

    Statistics and modelling

    Test ideas and build simple models, and be honest about their limits.

    Learn

    • Descriptive statistics and uncertainty
    • Hypothesis tests and their limits
    • Linear and logistic regression
    • Training and testing a model on separate data
    • Reading model output
    • Correlation is not cause

    Tools

    • Base R statistics functions
    • tidymodels
    • broom

    Build

    • A model that predicts something simple, checked on data it has not seen
    • A short note on what the model cannot tell you

    CheckpointYou can explain your model's result and its limits to someone who is not technical.

  5. Stage 53 weeks, then ongoing

    Report and share

    Package your work so others can read it, rerun it and trust it.

    Learn

    • Reports with Quarto or R Markdown
    • Reports that take parameters
    • Simple interactive apps with Shiny
    • Project structure and Git
    • Repeatable environments
    • Publishing your work

    Tools

    • Quarto
    • Shiny
    • Git and GitHub
    • renv

    Build

    • A report that rebuilds from raw data with one command
    • A small Shiny dashboard with two filters, published online

    CheckpointYour report rebuilds from the raw data on another computer.

Afterwards

Roles this prepares you for

All career paths

Tools and model names change quickly. Treat the names here as examples, and check each tool's own documentation for what is current.