In this R programming course, we will occasionally use tutorials that will focus on topics covered in class. These interactive tutorials will allow you to practice with very simple exercises.
For example, use the following interactive window to run the command 2 + 2
, then click the "Run Code" button.
For some exercises, I will give you hints, and the solution, which you can access by clicking on the "Hints" and "Solution" button. For example: below, create a vector x
containing the integers from 1 to 10. Click on the "Solution" button to see the solution.
x <- 1:10
Below, declare a vector x
containing the integers from 1 to 10 ** squared **. Click on the successive clues: the last clue will be the solution!
1:2^2
(1:2)^2
x <- (1:10)^2
The following sections contain exercises on R data structures, reading data, as well as keyboard practice to remember how to write the essential symbols for programming in R!
Let's start with keyboard training!
Indeed, in R, we often need special characters that are not commonly used. This quiz allows you to practice. Enter the requested character string and click on the "Submit" button.