Skip to main content

Interactive course

Course R

Learn R progressively for data analysis, inferential statistics, linear models, and data pipelines. From vectors and data frames up to dplyr, ggplot2, t-test, lm() and advanced wrangling in Base R.

01 · Bases and Vectors

2 lessons

The R environment, assignment with <-, vectors, recycling, atomic types, and matrices.

  1. 1.1Variables, Vectors and RecyclingCreate variables with <-, build vectors with c(), 1-based indexing, and understand vectorized operations and recycling.~18 min
  2. 1.2Atomic Types, Coercion and MatricesMaster numeric, integer, character, logical, the implicit coercion scale and two-dimensional matrices.~18 min

02 · Data Frame and Flow

2 lessons

Organize heterogeneous tables in Data Frames, filter records with logical masks and control the execution flow.

  1. 2.1Data Frames and SubsettingConstruct data.frame(), inspect str()/summary(), extract columns with $, and filter rows with indexing [r, c].~20 min
  2. 2.2Conditionals, Loops and VectorizationUse if / else / ifelse(), safe for loops with seq_along(), while and understand when to prefer vectorized operations.~20 min

03 · Functions, Apply and Descriptive Statistics

2 lessons

Write reusable modular functions, apply them with lapply/sapply, and synthesize distributions by handling NA values.

  1. 3.1Writing Functions and Apply FamilyDefine functions with default arguments, lexical scope, explicit/implicit return, and transformations with sapply/lapply.~20 min
  2. 3.2Data Exploration, NA and AggregationsCalculate mean, median, sd, quantiles with na.rm = TRUE and summarize groups with tapply() and aggregate().~22 min

04 · Tidyverse and Pipeline dplyr

2 lessons

Manipulate real tables in a readable way by composing filters, selections, transformations and aggregations with %>% and dplyr.

  1. 4.1Filter, Select and Sort with dplyrConcatenate select(), filter(), and arrange(desc()) with the pipe operator %>% to extract and sort records.~20 min
  2. 4.2Mutations, group_by and summariseDerive columns with mutate() and calculate aggregate metrics by category using group_by() %>% summarise().~22 min

05 · Viewing with ggplot2

2 lessons

Build clear, layered graphs by applying the Grammar of Graphics with aes(), geometries, themes and facets.

  1. 5.1Grammar of Graphs and GeometriesMap variables to coordinates and colors with aes() and overlay geom_point(), geom_line(), and geom_col() layers.~20 min
  2. 5.2Multi-Panel Themes, Labels and FacetsRefine charts for publication with labs(), scales, minimal themes, and paneling with facet_wrap().~22 min

06 · Distributions and Statistical Inference

3 lessons

Move from descriptive summaries to probability distributions, t.test() hypothesis tests, correlation, and contingency tables.

  1. 6.1Distributions, Quantiles and NormalityCalculate quantiles, IQR, z-scores and simulate reproducible samples with set.seed(), rnorm() and pnorm().~20 min
  2. 6.2Hypothesis Test, Welch t-test and p-valueCompare means with t.test() (one-sample, Welch two-sample and paired), read p-value and confidence intervals.~22 min
  3. 6.3Correlation and Chi-Square TestEvaluate linear and monotone relationships with cor()/cor.test() (Pearson/Spearman) and categorical independence with table()/chisq.test().~20 min

07 · Regression and Linear Models

3 lessons

Estimate relationships and make predictions with lm(), interpret coefficients and R², diagnose residuals and avoid overfitting.

  1. 7.1Simple Linear Regression with lm()Write y ~ x formulas in lm(), inspect summary(fit), R², p-value coefficients, and generate predictions with predict().~22 min
  2. 7.2Multiple Regression, Factors and InteractionsModel multiple numeric and categorical predictors (dummy encoding of factor()), x1 * x2 interactions, and intervals with predict().~24 min
  3. 7.3Residual, Outlier and Train/Test Split diagnosticsAnalyze residuals(fit), calculate RMSE/MAE, find high leverage outliers with cooks.distance() and validate out-of-sample.~24 min

08 · Advanced Wrangling and E2E Project

2 lessons

Clean text, dates and sorted categories with R basis to build a complete analytic pipeline from raw data to reports.

  1. 8.1Strings, Dates and Categories with factor()Clean up strings with trimws()/gsub()/grepl(), calculate differences between Dates and control the order of categories with factor().~22 min
  2. 8.2Final Project: Pipeline Complete in Base RMerge cleaning, NA imputation, merge() relational, KPI aggregation, and lm() linear modeling into an end-to-end reproducible flow.~25 min
Frequently asked questions

Course R FAQ

How many lessons and hands-on exercises are in Course R?

Course R covers 8 modules, 18 interactive lessons, and 110 practical exercises (~6 hours total) with instant automated validation.

Do I need local setup or IDE installation for Course R?

No installation required: every exercise and the interactive Course R playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.

Is Module 1 of Course R free without creating an account?

Yes. Module 1 (“Module 1 — Bases and Vectors”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.

Which career learning paths include Course R?

Course R is a core building block of Data, SQL & Analytics, targeting roles such as Data Analyst · Analytics Engineer · BI Developer.