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: BMC I1341 and/or BMC H1023 computer room
09.00-09.15 Registration and Welcome (Christine Karlsson)
09:15-10:00 Lecture: Introduction to R programming (Marcin Kierczak)
10:15-10:45 Lecture: Introduction to R environment (Marcin Kierczak)
11:00-12:00 Exercise and video: Using R-studio (Marcin Kierczak, Dag Ahren)
12:00-13:00 Lunch
13:00-15:00 Lecture: Elements of R programming - variable types, operators (Marcin Kierczak)
15:00-17:00 Exercise: Data types in R (Marcin Kierczak, Dag Ahren, Markus Ringner)
Tuesday
Room: BMC I1341 and/or BMC H1023 computer room
09:00-10:00 Lecture: Elements of R programming language - vectors, strings (Marcin Kierczak)
10:00-11:00 Lecture: Elements of R programming language - matrices, lists, data frames and objects (Marcin Kierczak)
11:00-12:00 Exercise: Working with vectors (Marcin Kierczak, Dag Ahren, Markus Ringner)
12:00-13:00 Lunch
13:00-17:00 Exercise: Matrices, lists, data frames (Marcin Kierczak, Dag Ahren, Markus Ringner)
Wednesday
Room: BMC I1341 and/or BMC H1023 computer room
09:00-10:00 Lecture: Elements of R programming language - control structures, iteration, recursion, variable scope (Marcin Kierczak)
10:00-11:00 Lecture: Loading data into R (Marcin Kierczak)
11:00-12:00 Exercise: Loading data (Marcin Kierczak, Dag Ahren, Markus Ringner)
12:00-13:00 Lunch
13:00-17:00 Exercise: Loops, conditional statements, functions, variable scope (Dag Ahren, Markus Ringner)
Thursday
Room: BMC I1341 and/or BMC H1023 computer room
13:00-14:00 Lecture: Selected functions in R (Thomas Källman)
14:00-15:00 Lecture: Graphics in R (Thomas Källman)
15:00-17:00 Exercise: Graphics in R (Thomas Källman, Nikolay Oskolkov, Fredrik Levander)
Friday
Room: BMC I1341 and/or BMC H1023 computer room
09:00-10:00 Exercise: Graphics in R ctd (Thomas Källman, Nikolay Oskolkov, Fredrik Levander)
10:00-11:00 Live presentation: More on explanatory programming and intro to R package anatomy (Thomas Källman)
11:00-12:00 Q&A session (Thomas Källman)
12.00-13.00 Lunch
13:00-16.00 Graphics in R: ggplot2 (Thomas Källman, Nikolay Oskolkov, Fredrik Levander)
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!
Extra Material
- Color names list in R
- Visualizing data
- Naming conventions in R
- Introduction to statistical tests in R
- Bioconductor examples
Teachers
Marcin Kierczak - marcin.kierczak at scilifelab dot se, Uppsala University, NBIS
Thomas Källman - thomas.kallman at nbis dot se, Uppsala University, NBIS
Dag Ahren - dag.ahren at nbis dot se, Lund University, NBIS
Markus Ringner - markus.ringner at scilifelab dot se, Lund University, NBIS
Nikolay Oskolkov - nikolay.oskolkov at scilifelab dot se, Lund University, NBIS
Fredrik Levander - fredrik.levander at nbis dot se, Lund University, NBIS