This afternoon we are going to get acquainted with R. For your own computer, the program R can be obtained from On the UU computers it is already available under ‘standard applications’ –> ‘R for windows’.

If you have any questions or suggestions, feel free to ask/suggest.

We start with the very basics and will move towards more advanced operations in R. First we will get acquainted with the language and the environment we work in. After that we will work on making vectors and matrices, dataframes and lists, and we will spend some time on exploring functions in R. And finally, we combine all the techniques we learned to make our own dataset and do a basic t-test and regression analysis on it in R.

Exercise 1: Getting used to the R console, R scripts, and the global environment.

1.1 Open R

The following window will appear.