Universiteit Leiden

nl en

Career development | Working effectively

R: Introduction (modular)

This is an introduction course to data analysis in R. The course is modular, which means that participants can choose to attend any 1, 2, or 3 days, if they have sufficient knowledge about R to do so.

Target group
Postdoctoral researcher
PhD candidate
Sjoerd Huisman  (Contact person) Ligaya Breemer  (Education and research staff member) Julian Karch  (Assistant professor)
Training course

Deadline registration is Monday 16 January 2023.


The focus of this course is on teaching R, not statistical theory. So the analyses are limited to first-year BSc materials.


Day 1

  • Basic commands and data types in R
  • Using existing functions and external packages
  • Loading data files
  • Making selections and calculating summary statistics
  • An example statistical analysis with interpretation of the output and relevant plots

Day 2 (required knowledge: topics of day 1)

  • Data manipulation in R
  • Making plots for various variable types
  • Performing common statistical tests and viewing their output (t-tests, chi-squared tests, linear regression, ANOVA)

Day 3 (required knowledge: topics of day 1 and 2):

  • Reproducible research with RStudio projects
  • Tidyverse and ggplot2
  • Using knitr to integrate manuscript and code
  • Basic data simulation
  • Writing your own functions
  • Using loops

Please bring your own laptop, with a working installation of R and Rstudio (see starting-up instructions).

Mode of instruction

The course will consist of a mix of lectures, demonstrations and doing exercises.

Reading list

There will be a document with starting-up instructions (installing R and Rstudio). Participants are required to bring their own laptops.


Target group

One day

Two days

Three days

PhD candidates FSW




Staff FSW




Other Leiden University PhD candidates








This website uses cookies.  More information.