R

Overview

About R

R is a programming language built for data analysis, statistics, and visualization. It is used everywhere from academic research and healthcare to finance and data journalism, and its ecosystem of packages makes it one of the fastest ways to go from a messy dataset to a clear answer. This course starts with Introduction & Setup, which gets R and RStudio running, followed by Language Fundamentals and Data Structures, which cover the vectors, data frames, and functions you'll use in every script.

Importing & Cleaning Data teaches you to bring in real-world data and tidy it, and Data Manipulation with dplyr shows how to filter, group, summarise, and join it with the tidyverse. Then Data Visualization with ggplot2 turns that data into clear, publication-quality charts using the grammar of graphics.

Statistics & Modeling covers hypothesis testing and regression, while Functional Programming & Performance teaches iteration with purrr, debugging, and writing faster code. Reporting with R Markdown & Shiny shows how to share your work as reproducible reports and interactive dashboards. Finally, Packages & Best Practices covers building your own package, testing, and the habits that keep your analyses reproducible and maintainable.

Content

10 modules
01

Introduction & Setup

Installing R and RStudio, the console and scripts, projects and working directories, and installing and loading your first packages.

R & RStudio Projects CRAN
02

Language Fundamentals

Variables, data types, vectors, operators, control flow, and writing your own functions — the building blocks of every R script.

Vectors Control Flow Functions
03

Data Structures

Lists, matrices, factors, and data frames, plus indexing, subsetting, and the apply family for working with them efficiently.

Data Frames Lists Factors
04

Importing & Cleaning Data

Reading CSV, Excel, JSON, and database data, tidy data principles, handling missing values, strings, and dates.

readr tidyr lubridate
05

Data Manipulation with dplyr

Filtering, selecting, mutating, grouping, summarising, and joining data with the pipe-driven tidyverse workflow.

dplyr Pipes Joins
06

Data Visualization with ggplot2

The grammar of graphics: geoms, aesthetics, scales, facets, and themes for building clear, publication-quality charts.

ggplot2 Facets Themes
07

Statistics & Modeling

Descriptive statistics, probability distributions, hypothesis tests, and linear and logistic regression with tidy model output.

Hypothesis Tests Regression broom
08

Functional Programming & Performance

Iteration with purrr, writing robust functions, debugging, profiling, and vectorizing code to make R run faster.

purrr Debugging Profiling
09

Reporting with R Markdown & Shiny

Reproducible reports with R Markdown and Quarto, plus interactive dashboards and web apps built with Shiny.

R Markdown Quarto Shiny
10

Packages & Best Practices

Creating your own R package, testing with testthat, version control with Git, and style, documentation, and reproducibility habits.

Packages testthat renv

What You Can Do After This Course

By the end of the curriculum you'll have completed several real data projects and covered the full path from R basics to reproducible, shareable analysis. Concretely, you'll be able to:

Write clean, idiomatic R — use vectors, data frames, and functions confidently, and structure scripts and projects the way professional R users do.

Import and tidy real-world data — read data from files and databases, handle missing values, strings, and dates, and reshape messy data into tidy form.

Transform data with the tidyverse — filter, group, summarise, and join datasets with dplyr and tidyr using readable, pipe-based workflows.

Build compelling visualizations — create layered, themed charts with ggplot2 that communicate findings clearly.

Apply statistics and modeling — run hypothesis tests, fit linear and logistic regression models, and interpret the results correctly.

Share reproducible work — publish reports with R Markdown or Quarto, build Shiny dashboards, and package and test your own code.