To main content To navigation

Social Sciences Summer Course

Barcelona Summer School of Demography | Module 1: An introduction to R

When:

29 June - 03 July 2026

School:

Barcelona Four Seasons School of Demography

Institution:

Centre d’Estudis Demogràfics (CED – Centre for Demographic Studies). Universitat Autònoma de Barcelona

City:

Barcelona

Country:

Spain

Language:

English

Credits:

0 EC

Fee:

300 EUR

Interested?
Barcelona Summer School of Demography | Module 1: An introduction to R

About

The Barcelona Summer School of Demography (BSSD) program is a comprehensive four-week course focusing exclusively on the R statistical language. It is structured into four distinct modules, with each module spanning a week (20hs), designed to provide an in-depth understanding of different aspects of the R language: statistical and demographic analysis, data visualization and spatial analysis. Applicants are invited to register in either the full four-week BSSD course or select individual modules that align with their specific learning needs and interests.
Module 1 offers an introduction to R and RStudio environments for which no previous knowledge is required.
This module will cover the following content:
Day 1: Introduction to R and RStudio; using the editor, main characteristics of RStudio, packages; data handling: import/export data to/from R; tidy data; fundamentals of ggplot2.
Day 2: Tidy data wrangling, Data processing pipelines, worked examples.
Day 3: Function writing, modularity, using functions in pipelines.
Day 4: Conditional execution: the ‘if’ command, introduction to for-loops, combining `if` and for-loops, more complex functions.
Day 5: Join operations, group challenges, review of the module

Course leader

Sergi Trias is a post-doctoral researcher at the Centre for Demographic Studies (CED). His research focuses on lifestyle-related health outcomes, causes of death and inequalities in health and mortality. In 2022 he obtained the European Demographer Award

Target group

Master and PhD Students, Researchers, Data Journalists and people how work with population data in general

Course aim

Students will learn general ways to interact with R and RStudio and how to use the more general family functions of R

Fee info

Fee

300 EUR

Interested?

When:

29 June - 03 July 2026

School:

Barcelona Four Seasons School of Demography

Institution:

Centre d’Estudis Demogràfics (CED – Centre for Demographic Studies). Universitat Autònoma de Barcelona

Language:

English

Credits:

0 EC

Visit school

Stay up-to-date about our summer schools!

If you don’t want to miss out on new summer school courses, subscribe to our monthly newsletter.