Data Analysis with R
The tidyverse workflow: import, tidy, transform, visualise, communicate.
Start this course freeLabs run in your browser. No installs.
What you will be able to do
- Import and tidy messy data
- Transform with dplyr verbs
- Visualise with ggplot2
- Report with Quarto
Tools
- readr
- dplyr
- tidyr
- ggplot2
- lubridate
- stringr
- forcats
Syllabus — 6 modules
Import
readr, readxl, DBI and httr2 bring data in from files, spreadsheets, databases and APIs.
read_csv and column types · readxl for Excel · DBI and odbc for SQL · jsonlite and httr2 for APIs · janitor::clean_names
Tidy data
Tidy data has one variable per column, one observation per row and one value per cell.
Tidy principles · pivot_longer and pivot_wider · separate and unite · Handling missing values · Joins: left_join, inner_join, anti_join
dplyr verbs
Five verbs cover most transformation: filter, select, mutate, arrange, summarise — plus group_by.
filter, select, mutate, arrange · group_by and summarise · across() · case_when · Window functions: lag, lead, row_number · count and slice_max
Dates, strings and factors
lubridate handles dates, stringr handles text, forcats handles categorical ordering.
ymd, floor_date, intervals · str_detect, str_replace, regex · fct_reorder, fct_lump
ggplot2
The grammar of graphics: map variables to aesthetics, add geoms, then refine scales, facets and themes.
ggplot(), aes() · Geoms: point, line, col, histogram, boxplot · Facets · Scales and labels · Themes · Saving plots
Communicating
Quarto combines code, results and narrative in HTML, PDF or Word, and renders dashboards and slides.
Quarto documents and chunk options · Tables with gt · Parameterised reports · Quarto dashboards
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
- R Programming Beginner
- Data Analysis with R (this course) Intermediate
- Advanced Data Analysis with R Advanced
Part of these career paths
Questions and answers
- How long does the Data Analysis with R course take?
- About 28 hours across 6 modules, at your own pace. At five hours a week most learners finish in 6 weeks.
- Is Data Analysis with R free?
- Yes. Every lesson, lab and the final exam are free; you only need a free account.
- Do I get a certificate for Data Analysis with R?
- 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 Data Analysis with R?
- It follows R Programming in the R track. If R is new to you, start with R Programming.
- What will I be able to do after Data Analysis with R?
- Import and tidy messy data; Transform with dplyr verbs; Visualise with ggplot2.