R Programming Foundations for Life Scientists
This one week course aims at delivering basic knowledge in using the R programming language. The course contains both lectures and practical exercises.
In the course we encourage participants to use r-studio and r-markdown making reproducible research part of the data analysis workflow.
Before the first course please have a look at the Pre-course material. If you want to be able to generate pdf reports from your markdown files during the course please make sure to install latex on your machine.
Note that the links to lectures and exercises will be made active at the day of events
Schedule
Monday
Room: Trippelrummet, E10, ground floor
09.00-09.15 Registration and Welcome, presentation of SciLifeLab
(Elina Staaf)
09:15-10:00 Lecture: Introduction to R programming (Marcin Kierczak)
10:15-10:45 Lecture: The R environment (Marcin Kierczak, Thomas Källman)
11:00-12:00 Exercise and video: Using R-studio (Marcin Kierczak, Thomas Källman)
12:00-13:00 Lunch at BMC restaurant
13:00-15:00 Lecture: Elements of R programming - part 1a (Marcin Kierczak)
15:00-17:00 Exercise: Datatypes part 1 - Working with vectors (Marcin Kierczak/Thomas Källman, Johan Viklund, Sebastian DiLorenzo, Bengt Sennblad)
Tuesday
Room: Trippelrummet, E10, ground floor
09:00-10:00 Lecture: Elements of the programming language - part 2 (Marcin Kierczak)
10:00-11:00 Lecture: Elements of the programming language - part 3 (Marcin Kierczak)
11:00-12:00 Exercise: Datatypes part 1 - Working with vectors cont. (Thomas Källman/Marcin Kierczak, Bengt Sennblad, Sebastian DiLorenzo)
12:00-13:00 Lunch at BMC restaurant
13:00-17:00 Exercise: Datatypes part 2 - matrices, lists, data frames (Thomas Källman/Marcin Kierczak, Bengt Sennblad, Sebastian DiLorenzo)
Wednesday
Room: Trippelrummet, E10, ground floor
09:00-10:00 Lecture: Elements of the programming language - part 4 (Thomas Källman)
10:00-11:00 Lecture: Loading data (Marcin Kierczak)
11:00-12:00 Exercise: Loading data (Thomas Källman/Marcin Kerczak, Eva Freyhult, Bengt Sennblad)
12:00-13:00 Lunch at BMC restaurant
13:00-17:00 Exercise: Datatypes part 3 - loops, conditional statements, functions, variable scope (Thomas Källman, Johan Reimegård, Bengt Sennblad)
18:00- Course dinner
Thursday
Room: Trippelrummet, E10, ground floor
09:00-10:00 Lecture: Selected functions in R (Marcin Kierczak)
10:00-11:00 Lecture: Graphics (Marcin Kierczak)
11:00-12:00 Exercise: Selected functions in R (Thomas Källman/Marcin Kierczak, Eva Freyhult, Johan Reimegård)
12:00-13:00 Lunch at BMC restaurant
13:00-15:00 Exercise: Selected functions in R cted. (Thomas Källman/Marcin Kierczak, Johan Viklund, Johan Reimegård)
15:00-17:00 Exercise: Graphics in R cted. (Thomas Källman/Marcin Kierczak, Johan Viklund, Johan Reimegård)
Friday
Room: Trippelrummet, E10, ground floor
09:00-10:00 Lecture: ggplot2 (Marcin Kierczak)
10:15-10:45 Live presentation: Explanatory programming (Thomas Källman/Marcin Kierczak)
10:45-12:00 Q&A session. (Thomas Källman, Marcin Kierczak, )
12.00-13.00 Lunch at BMC restaurant
13:00-16.00 Graphics in R: ggplot2 (Thomas Källman/Marcin Kierczak, Sebastian DiLorenzo, Per Unneberg, Eva Freyhult)
Bonus ggplot2 lab – interactive plots with plotly, a tribute to Hans Rosling Bonus Lab
Bonus – an R game
If you want to test your skills and hopefully have some fun at the same time, you can play an R game. To do this,
install.packages("BetaBit") library('BetaBit')
and choose one of the three available games. For instance, to play the proton game (which we recommend), you type:
proton()
Then just follow instructions on your screen. Let us know if you complete the game! Good luck!