Course · Interactive

R Foundations

A from-zero R course — vectors, matrices, control flow, pipes, data frames, joins, reshaping, descriptive stats, and base plotting across 35 live, auto-graded lessons.

Who it's for

Complete beginners — no coding or installation needed. The full foundation for Statistics with R and data science.

What you'll learn

  • Work with every core type — numeric, character, logical — and coerce safely
  • Read CSV-style data and understand recycling, vectors, matrices, factors, lists, and data frames
  • Control flow with if/else, loops, vectorization, and pipes
  • Write functions with defaults, scope awareness, apply, and tryCatch
  • Subset, sort, join, reshape, summarize, and plot data with base R
  • Clean strings and dates; compute descriptive statistics

Course contents

  1. 01Getting Started — variables, types, strings, reading data
  2. 02Control Flow — conditionals, loops, vectorization, pipes
  3. 03Data Structures — vectors through data frames, NA, binding
  4. 04Functions — defining, arguments, scope, apply, errors
  5. 05Working with Data — subset, sort, aggregate, stats, merge, reshape, regex, dates, plots
  6. 06Practice — mixed challenges + function drills