-
Title: Introduction to Programming and Data Analysis in R (v2026)
-
Instructors: Filip Andras, Efraín García Sánchez
-
Format: In-person
-
Available spots: 30
-
Duration: 25 in-person hours across 5 sessions, plus 5 hours of independent work
-
Location: Seminar Room 4, Mind, Brain and Behavior Research Center (CIMCYC)
-
Prerequisite: Basic knowledge of statistics
-
The course will be taught in Spanish.
Description and Contents
This course, aimed at doctoral students in the health sciences, is designed to provide a theoretical and practical introduction to programming and data analysis in R. Throughout the course, you will learn everything from the fundamentals of the language to data manipulation techniques, basic analysis, visualization, and creating research reports.
The course is divided into five sessions, combining theory and practice:
Session 1 — Introduction to Programming in R
- Why learn to program?
- The R and RStudio environment.
- Basic programming elements.
- Workflow and best practices.
- Initial data exploration.
Sessions 2 & 3 — Data Processing
- Working with data in R.
- Data manipulation.
- The tidyverse suite of libraries.
Sessions 3 & 4 — Introduction to Data Analysis in R
- t-tests.
- ANOVA.
- Linear regression.
Session 5 — Research Reports & Bring Your Own Data
- R Markdown/Quarto
- Data visualization.
- In the second half, students will try to apply what they have learned to their own dataset.
- Q&A and troubleshooting.
Schedule
| Time | Day | Date | Content Block |
|---|---|---|---|
| 9:00-14:00 | Monday | April 13 | Session 1 – Introduction to Programming in R |
| 9:00-14:00 | Tuesday | April 14 | Session 2 – Data Processing I |
| 9:00-14:00 | Wednesday | April 15 | Session 3 – Data Processing II, Data Analysis in R I |
| 9:00-14:00 | Thursday | April 16 | Session 4 – Data Analysis in R II |
| 9:00-14:00 | Friday | April 17 | Session 5 – Research Reports & Bring Your Own Data |
Install R and RStudio on Your Computer
R is a free programming language and statistical environment, widely used in scientific research for data analysis, statistical modeling, graphics, and more. RStudio is an integrated development environment (IDE) for R that offers a user-friendly interface — with a code editor, console, package management, results viewer, and support for generating reproducible reports with R Markdown — making it much easier to work with R.
Where to download:
- R: from the official R project website, choosing the appropriate installer for your operating system (Windows, macOS, or Linux).
- RStudio: from its official downloads page, selecting the "Desktop" version suited to your operating system.
Course materials
The course materials (session slides, example code, supplementary material) are currently being prepared. Once available, they will be uploaded to this section.
Lecture sessions:
- Session 1 (.pdf)
- Session 2 (.pdf)
- Session 3 (.pdf)
- Session 4 (.pdf)
- Session 5 (.pdf)
Practical sessions:
Solved exercises:
Registration
Registration must be completed through the form on the webpage of Escuela de Doctorado de las Ciencias de Salud which will be active from March 19 to 26, 2026.
This activity is part of grant CEX2023-001312-M, funded by MICIU/AEI/10.13039/501100011033 and grant UCE-PP2023-11 funded by University of Granada.