Start free

RBeginnerBeginner stage24 hoursFree

R Programming

R from zero: the language statisticians, researchers and analysts use for rigorous analysis.

Start this course freeLabs run in your browser. No installs.

What you will be able to do

  • Use R and RStudio confidently
  • Work with vectors, lists and data frames
  • Write functions and control flow
  • Manage packages and projects

Tools

  • R 4.x
  • RStudio / Positron
  • CRAN
  • renv

Syllabus — 5 modules

  1. Getting started

    R is a language built for data. RStudio or Positron gives you a console, editor, environment and plots pane.

    Installing R and RStudio/Positron · Console vs script · Projects and working directories · Installing and loading packages · Help: ?function, vignettes

  2. Vectors and types

    Almost everything in R is a vector. Operations apply element by element.

    Atomic vectors: numeric, integer, character, logical · Factors · Missing values: NA and NaN · Vectorised operations · Indexing with [ ] · Sequences and rep

  3. Data structures

    Lists hold anything; data frames and tibbles hold tables; matrices hold numbers in 2D.

    Lists · Matrices and arrays · Data frames and tibbles · $ and [[ ]] · str() and glimpse()

  4. Functions and control flow

    Write functions to avoid repetition; prefer vectorised code and the apply family over explicit loops.

    function(), arguments and defaults · if/else and ifelse · for and while · apply, lapply, sapply · purrr::map · The pipe · > and %>%

  5. Projects and reproducibility

    RStudio projects, renv and Quarto make analysis reproducible by anyone.

    RStudio projects · renv for package versions · here::here() for paths · Quarto documents · Git with RStudio

How you are assessed

Every module ends with a check question. The final exam has 15 theory questions and 3 hands-on tasks solved in the tool this course teaches; pass at 70% for a certificate anyone can verify online.

Where it sits in the R track

  1. R Programming (this course) Beginner
  2. Data Analysis with R Intermediate
  3. Advanced Data Analysis with R Advanced

Part of these career paths

Start learning

Questions and answers

How long does the R Programming course take?
About 24 hours across 5 modules, at your own pace. At five hours a week most learners finish in 5 weeks.
Is R Programming free?
Yes. Every lesson, lab and the final exam are free; you only need a free account.
Do I get a certificate for R Programming?
Yes. Pass the final exam (15 theory questions and 3 hands-on tasks in 40 minutes, pass mark 70%) and you get a certificate with an ID that anyone can verify online.
What should I know before starting R Programming?
Nothing beyond basic computer use: it is where the R track begins.
What will I be able to do after R Programming?
Use R and RStudio confidently; Work with vectors, lists and data frames; Write functions and control flow.