Learn R programming for data analysis and statistics, from your first vector to a regression line. Short lessons explain each idea, then you write R code in the built-in editor, run it and see the result, the table or the chart.
This is an R tutorial, an R course and a practice lab in one app, with an AI mentor for the moments you get stuck.
WHAT'S INSIDE
• 43 R courses with 159 lessons, from beginner (A1) to advanced (C1)
• R code editor and compiler: write R and run it on a real R 4.0 interpreter on our servers (internet connection needed)
• Charts from your own code: plot(), hist(), boxplot() and barplot() draw right in the app
• Data frames shown as sortable tables, with a column summary and missing values (NA) highlighted
• R Notebook: build an analysis cell by cell
• Dataset Lab: mtcars, iris, airquality and five practice CSV files with guided tasks, or import your own CSV
• Statistics workshop: 12 interactive simulators (normal curve, central limit theorem, p-values, correlation, fitting a line, sample size, boxplot anatomy and more), each showing the R code behind it
• R Error Doctor: turns cryptic R error messages into plain language and suggests a fix
• AI data mentor: reads your output, table or chart and explains what it means
• 3 end-to-end analysis projects with a shareable report card
• 20 guided R coding projects and 60 missions (easy, medium, hard)
• A daily data puzzle, streaks, XP and a skill map
• World Coding Challenge: 3 global rounds every day
• Final exam and R certificate (Pro)
WHAT YOU'LL LEARN
• R basics: vectors, data types, operators, sequences, matrices, factors and missing values
• Functions, control flow, environments, error handling and debugging
• Strings, dates, sorting, ranking and type conversion
• Data manipulation and the tidyverse: dplyr, tidyr, importing data with readr and readxl
• Data visualization with base R and with ggplot2
• Exploratory data analysis, statistical analysis, probability and simulation
• Advanced R: purrr, machine learning with tidymodels, random forests, Shiny apps, Plumber APIs, text mining, geospatial analysis, package development, Bayesian statistics with RStan, performance and parallel computing
ABOUT THE CODE RUNNER
The in-app compiler runs base R 4.0 with its recommended packages. Lessons that use packages such as dplyr, ggplot2 or tidymodels teach the code and the ideas; to run those packages yourself, use R on a computer. Where a base R way exists, the Error Doctor shows it.
HOW A SESSION LOOKS
1. Open today's lesson or pick up where you left off
2. Read a short explanation and answer a quick question
3. Open the R editor, change the code, run it, look at the chart or the table
4. Ask the AI mentor when something doesn't make sense
WHO IT'S FOR
• Students taking statistics, biostatistics, psychology, economics or data analysis classes that use R
• Analysts moving from spreadsheets to R programming
• Beginners who want a first programming language made for data
• Anyone who wants to read R code and understand what a statistical result says
FREE AND PRO
Free: the first course (Welcome to R), a preview of every lesson, the R editor, the Error Doctor, 6 of the 12 simulators, 3 datasets, 1 guided project, 1 analysis project, 2 missions and a daily AI mentor allowance. The free version shows ads.
Pro: every course and lesson, all projects, missions, simulators and datasets, unlimited notebooks, chart export, the final exam and certificate, AI mentor without the daily limit, and no ads. Pro is a weekly, monthly or yearly subscription, or a one-time lifetime purchase.
The app is available in 22 languages.
Learn R is an independent app. It is not affiliated with or endorsed by the R Foundation or Posit.