Learn R in Your Browser
Learn R by running it — right here, no download or install. Every code box on these pages is a real R console powered by webR: edit the code, press Run, see the output. The first run loads R into your browser (a few seconds); after that it’s instant.
Each grey code box is editable. Change the numbers, press Run Code, and watch what happens — experimenting is the fastest way to learn.
Start here
Interactive tutorials
1 ### R basics R as a calculator, variables, functions and comments — the absolute essentials.
2 ### Vectors Create vectors, index them and do maths on all values at once.
3 ### Data types Numbers, text, TRUE/FALSE and factors — and converting between them.
4 ### Subsetting & indexing Pull out exactly the elements, rows and columns you want.
5 ### Logical conditions & if/else Comparisons, & | %in%, and branching your code with if/else.
6 ### Data frames R’s spreadsheet: columns, rows, subsetting and exploring a dataset.
7 ### Factors Store categories, set their order, and group by them.
8 ### Missing values (NA) Find, ignore, drop or fill the gaps in real data.
9 ### Reading data Import a CSV, set the working directory and inspect what you loaded.
10 ### Writing functions Package repeated steps into a reusable function with arguments.
11 ### Packages install.packages(), library() and CRAN — extend base R.
12 ### Your first plot Histograms, scatter plots and boxplots — draw them live in the browser.
13 ### Basic statistics Mean, SD, summaries and your first t-test — the statistics starter kit.
14 ### Data wrangling with dplyr filter, select, mutate, group_by and summarise — tidy data manipulation.
15 ### The pipe (|>) Chain steps into a readable top-to-bottom pipeline.
### R playground A blank R console — type anything and run it, plus real biostatistics datasets to explore. Your sandbox.
### Test your R knowledge Three quizzes — easy, medium and hard — with instant feedback and an explanation on every answer.
Free R, Markdown & Quarto cheat sheets
One-page PDF guides — the “Which test?” decision chart, Markdown syntax, and Quarto reporting — free to download. Add your email for the occasional R tip too. No spam, unsubscribe anytime.
Ready for more? Our blog has deeper R tutorials, and the free calculators put R-accurate statistics one click away. When your project outgrows learning mode, that’s where we come in.