R Programming
A free, hands-on R programming course with live code you edit and run right in your browser, powered by WebR — no install required.
Learn R, Live in Your Browser
A hands-on intro to R. Every example in this course is real, editable code that runs on a real R engine — powered by WebR, no install or server required.
Use the sidebar to move between lessons. Variables you create in one lesson are still available in later ones on the same page, just like a real R console — though each lesson page starts its own fresh session.
- 1. Variables & Basic Types —
<-assignment, numeric/character/logical types - 2. Vectors —
c(), indexing, vectorized arithmetic - 3. Functions — built-ins and writing your own
- 4. Control Flow —
if/elseandfor - 5. Data Frames — R’s table type
- 6. Plotting — base graphics, rendered live
- 7. Your Turn — a blank cell to experiment in