Welcome to R for Beginners

Learn the basics of R through short lessons and practice exercises.

Learn R one step at a time, with examples you can run yourself.

1 Start here

In the first lesson, you will use R as a calculator, create a variable, and calculate the mean of a small set of numbers.

Open Lesson 1

2 How to use the course

  1. Read the lesson and run each example in RStudio.
  2. Try the exercise before opening the solution.
  3. Download the practice script to repeat the examples.

3 Practice materials

The dataset contains invented numbers for practice.