Courses / Specialisations & media / R Programming

₹69Self-paced

R Programming

Produce a reproducible R analysis: tidy data, run and report statistical tests, build ggplot2 charts and render an R Markdown report.

  • Who it's for. Learners who know introductory statistics and want to run analyses in R; no earlier R programming is assumed.
  • Before you start. Completion of Statistics for Data Analysis or equivalent: you can describe a sample with mean, median and standard deviation, explain a confidence interval and a p-value in words, and name when a t-test, chi-square test, correlation or simple regression applies.
  • 33 to 56 hours of study with practice
  • 8 modules, 59 lessons
  • 3 guided projects and a final project

What you'll learn

  • Run R from scripts in a fresh process, manage packages with renv, use project-relative paths and write testthat checks.
  • Build, import, subset, clean and save data frames and tibbles with explicit column types and missing-value handling.
  • Transform tables with the native pipe and dplyr, tidyr and stringr verbs, auditing row counts through filters, grouped summaries and joins.
  • Run and read base-R statistical tools (summaries, distribution functions, seeded simulation, t.test, chisq.test, cor.test, lm, assumption checks, p.adjust) and extract their results in code.
  • Deliver a reproducible parameterised R Markdown report with computed inline numbers, tests that gate rendering, and an honest results-and-limitations section.

Skills you'll gain

  • R workspace
  • Vectors
  • types
  • Data frames
  • Functions
  • control flow
  • Data transformations
  • Statistics
  • Visualization
  • Reproducible report

Tools you'll use

  • R
  • dplyr
  • tidyr
  • stringr
  • ggplot2
  • R Markdown

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Clinic visits: a reliable import and audit script

    Covers R workspace, Vectors and types and Data frames. Build, subset, import, extend, inspect and save data frames and tibbles, and predict how R's subsetting and import defaults change the result.

    You build: Clinic visits: a reliable import and audit script: Project folder with relative paths, a renv lockfile and a restore proof from a clean copy.

  2. 02

    Modules 4 to 5

    Retail orders: a tested transformation pipeline

    Write functions with defaults and validation, reason about scope and argument matching, control flow safely with vectors, iterate functionally, handle errors and test the results.

    You build: Retail orders: a tested transformation pipeline: Validated cleaning functions with error handling and a testthat file.

  3. 03

    Modules 6 to 7

    Survey results: statistics and figures bundle

    Run and read the standard base-R statistical tools (summaries, distribution functions, seeded sampling, t.test, chisq.test, cor.test, lm, assumption checks and p.adjust) and extract their results programmatically.

    You build: Survey results: statistics and figures bundle: Seeded simulation plus extracted t-test and chi-square results in tidy rows.

  4. 04

    Module 8

    Reproducible R analysis with tidy data statistical tests and report

    Assemble a rendered R Markdown report from a script-driven analysis: control chunks, inline numbers and tables, parameters, a clean-rerun project layout, tests and honest reporting of limitations.

    You build: The final project, demonstrated to a trainer.

Full curriculum

8 modules and 59 lessons, 33 to 56 hours of study

01R workspace7 lessons, 3 to 5 hours

Lessons

  • Three ways to run R code
  • Assigning and naming objects
  • Project-relative paths
  • Installing and loading packages
  • Finding help and inspecting objects
  • Pinning packages with renv
  • A first testthat check

After this module you can

  • Run the same three-line calculation in the console, with Rscript, and with source(), and state what each leaves behind in memory.
  • Create, inspect and remove named objects with <-, and explain why R names are case-sensitive and when backticks are needed.
  • Write one test_that() block with expect_equal() for a small function and run the file with the test runner.
02Vectors and types7 lessons, 3 to 5 hours

Lessons

  • Atomic vectors and silent coercion
  • Type, class and safe comparison of decimals
  • Vectorised arithmetic and recycling
  • Four ways to index a vector
  • NA, NULL, NaN and Inf
  • Factors, levels and the integer-code trap
  • Lists and the single versus double bracket

After this module you can

  • Create vectors with c() and predict the resulting type when logical, integer, double and character values are mixed.
  • Distinguish integer from double literals, use typeof() and class(), and compare decimals with all.equal() instead of ==.
  • Build a named list, extract with [[ ]] and $, and explain why [ ] returns a list while [[ ]] returns the element.
03Data frames7 lessons, 3 to 5 hours

Lessons

  • Building a data frame and checking its shape
  • Selecting rows and columns
  • Reading CSV files with readr
  • Adding, recoding and sorting columns
  • Tibbles and what they change
  • Finding and counting missing values in a table
  • Saving results: CSV and RDS round trips

After this module you can

  • Create a data.frame from equal-length vectors and report its dimensions, column types and the error raised when lengths differ.
  • Extract rows and columns with df[i, j], df[[ ]] and df$, and predict when the result simplifies to a vector.
  • Write a data frame with write.csv(row.names = FALSE) and saveRDS(), reload both, and compare which one preserves types.
04Functions and control flow8 lessons, 4 to 6 hours

Lessons

  • Defining a function with defaults and a return value
  • Argument matching and the dots
  • Scope, environments and closures
  • Conditions: if, && and switch
  • Loops, seq_along and preallocation
  • Functional iteration with lapply, vapply and Map
  • Raising and handling errors, warnings and conditions
  • Testing functions with testthat expectations

After this module you can

  • Write a function with default arguments and explain that the value of the last evaluated expression is returned.
  • Predict which argument a value binds to under exact, partial and positional matching, and forward extra arguments with ... .
  • Write expectations for values, errors and warnings using expect_equal, expect_identical, expect_error and expect_warning, and run a tests directory.
05Data transformations8 lessons, 4 to 6 hours

Lessons

  • The native pipe and reading verb chains
  • Choosing rows with filter and columns with select
  • Creating and recoding columns with mutate and case_when
  • Summarising by group
  • Ordering, counting and ranking
  • Joining tables by key
  • Reshaping with pivot_longer and pivot_wider
  • Cleaning text and dates

After this module you can

  • Rewrite nested calls as a |> chain and explain that the left value becomes the first argument of the right-hand call.
  • Keep rows by conditions with filter(), pick columns with select() helpers, and predict that filter drops rows whose condition is NA.
  • Clean strings with stringr (str_trim, str_to_lower, str_detect, str_replace_all) and parse dates with as.Date(format=), explaining the NA produced by a wrong format.
06Statistics8 lessons, 4 to 6 hours

Lessons

  • Summary statistics and their R defaults
  • Distribution functions: d, p, q and r
  • Seeded sampling and simulation
  • Comparing two groups with t.test
  • Testing counts with tables and chisq.test
  • Correlation with cor and cor.test
  • Fitting and reading a linear model with lm
  • Checking assumptions and adjusting for multiple tests

After this module you can

  • Compute mean, median, sd, IQR and quantiles with the right na.rm handling and state R's defaults (sd divides by n-1, quantile type 7).
  • Use the d/p/q/r prefixes for the normal and binomial distributions to compute density, cumulative probability, quantiles and random draws.
  • Check normality with shapiro.test() and qqnorm(), and apply p.adjust() to a set of p-values with a stated method.
07Visualization7 lessons, 3 to 5 hours

Lessons

  • The grammar of a plot: data, aesthetics, geoms
  • Showing distributions: histogram, density and box plot
  • Bars for counts and for values
  • Groups, facets and small multiples
  • Scales, labels and themes
  • Adding a fitted line and uncertainty
  • Saving figures with size, resolution and alt text

After this module you can

  • Build a scatter plot with ggplot(data, aes()) + geom_point() and tell mapped aesthetics (inside aes) from fixed ones (outside).
  • Draw a histogram with a chosen binwidth, a density curve and a box plot of the same variable, and explain what each reveals.
  • Save a plot with ggsave() at an explicit size and dpi, and verify the file and the alt text.
08Reproducible report7 lessons, 3 to 5 hours

Lessons

  • Anatomy of an R Markdown document
  • Chunk options and the setup chunk
  • Inline results and formatted tables
  • Parameterised reports
  • A clean-rerun project layout
  • Testing the analysis functions
  • Reporting results and limitations honestly

After this module you can

  • Write a minimal .Rmd with YAML header, prose and a code chunk, and render it with rmarkdown::render().
  • Control chunk behaviour with echo, eval, include, message, warning and a setup chunk, and predict what appears in the output.
  • Write a results section that states the test, estimate, interval and p-value, the assumptions checked and the limitations, using values computed in the document.

What you'll build

3 guided projects along the way, then a final project.

  • Clinic visits: a reliable import and audit script

    after module 3
  • Retail orders: a tested transformation pipeline

    after module 5
  • Survey results: statistics and figures bundle

    after module 7

Final project

Reproducible R analysis with tidy data statistical tests and report. Options: Neighbourhood bike-share ride durations; School attendance and exam results; Municipal service requests.

What you submit

Submit the full project folder (data/ with licence note, R/, tests/, output/, run.R, report.Rmd) and the renv lockfile raw data are never edited.

How it's reviewed

Trainer review against a weighted rubric: Reproducibility (25%): clean-copy run succeeds, no absolute paths, seed and versions recorded Data handling (20%): tidy structure, explicit types, documented missing-value decisions, row-count audit.

Where you'll use it

  • Clean and join two data tables and summarise results by group.
  • Compare two groups with a justified statistical test and report the result in a rendered document.

Roles that use these skills

  • Data analyst
  • Research analyst
  • Statistical programmer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What should I know before starting?

The course expects Statistics for Data Analysis or an accepted equivalent. Completion of Statistics for Data Analysis or equivalent: you can describe a sample with mean, median and standard deviation, explain a confidence interval and a p-value in words, and name when a t-test, chi-square test, correlation or simple regression applies. A short diagnostic check is described in the entry requirements.

What do I build for the final project?

You choose one of 3 options: Neighbourhood bike-share ride durations; School attendance and exam results; Municipal service requests. It is reviewed by a trainer in a live demonstration.

When do I get a certificate?

Only after you build and demonstrate your live project. OUTLEARN staff issue certificates; nothing is issued automatically.

Be first in when R Programming opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹69Opens soon
Notify me