Sayed Farhad Nabizada, December 2020


To ensure the training is as effective as possible, all participants are expected to review the following exercises before 28 Dec 2020. The sections marked ‘required’ are mandatory, and should be completed before the training. The subsequent sections are optional.

Required


1. Setup (1 hour)

R and Rstudio installation

Exercise
Download and install both R and RStudio to your work laptop. (these are two different installations.)

2. Getting Started with R and Rstudio (1 hour)

3. Programming basics (in R) (4 hours)

Variables and data structures

Content: 1. RStudio interface 1. Assigning variables 1. Data types: numerics, strings, factors 1. Data structures: scalar, vector, matrix, data frame, list 1. Subsetting

Exercise
Completing the datacamp course was your exercise!

Optional


Handling data (4 hours)

1.importing and exporting data: Intro to R environment: Chapter 3.3.
2. inspecting data: inspecting data:

Exercise
Follow the Exercise in 1.) Use R to load your own dataset, check the dimensions of the table, and save as a csv file under a different name.

4. R packages (1 day)

dplyr is commonly used R packages. All of R has packages as building blocks: simple tools that solve one particular problem. Later in this intro you will learn about the packages developed within IMPACT.

Installing and loading packages

Exercise
Install the “dplyr” package. Inspect it’s vignettes. Look at the help page for dplyr’s “mutate” function.