Introduction to R

How this course works, what the workbench can do, and the chapter list.

This is an R course for the Swiftener R Playground (WebR). Always print. Base R only — no install.packages. Python belongs in Introduction to Python. Base plots belong in Learn R graphics.

Goal

Finish every chapter by running the copy-paste blocks. The last chapter is a rainfall summary you can reuse.

How to take the course

  1. Keep this tutorial tab and the R Playground side by side.
  2. Wait until WebR is ready.
  3. Copy an exercise, paste it as the whole editor, then press Ctrl+Enter (or Cmd+Enter).
  4. Always print(...). Do not call install.packages.

What this playground can and cannot do

  • Can: base R, print, data.frames, local drafts, a rainfall CSV.
  • Cannot: CRAN packages, ggplot2 unless already loaded (it is not — stay in base R).

Sample files

  • rain.csv — mm of rain by Kenya city

Chapter list