Exercise

How it works

The focus of this course is learning-by-doing. Therefore, you will be asked at regular times to do interactive R exercises to practice the concepts seen in the videos. These interactive exercises take place in the interface you are looking at right now!

On the right you see the editor. Here you type the necessary R code to solve the exercises. Sometimes part of the correct code is already provided, you just have to complete the code according to the instructions. In this case you can see some comments (indicated with #), and code parts demo("graphics") and 3 + 4.

The console in the lower right corner shows the output of your R code.

In case you do not know the answer, you can always click solution in the top bar.

Instructions

100xp

In this section of the screen, you can find the instructions for solving the exercise.

Click "Submit Answer" and see how the console now shows the executed R-code: the solution 7 appears as the sum of 3 and 4.

In the upper right corner R has generated some visualizations. Use the arrows above the graphs to browse through these.