Chapter 2 Basic Programming Tutorials

Date: Start of the year, during the basic mathematics course.

Topic: Programming

Duration: 30–90 min.


There are two great tutorial for learning the basics in R. This video shows how to use them:

2.1 swirl

Watch the part about swirl and complete chapters 1, 2, 4, 7 & 8 from the R Programming course.

2.2 learnr (*)

Complete the Data Basics chapter from the learnr package as explained in the video.

(If you don’t see a Tutorial tab, run install.packages("learnr") in the console and then restart RStudio.)


From here on out, I will assume basic familiarity with R syntax. If you can use R as a glorified calculator, that is enough for now.