Introduction to R

From your first object to your first loop: a hands-on introduction to programming in R for psychology research.
Author

Margherita Calderan

Published

October 28, 2026

19–29 October 2026 5 lessons · 9:00–13:00 Psico 1 · Aula ARCA Taught in English ARCA · University of Padova

Goals

  • Learn all the main elements that make up the R language
  • Learn the general logic of programming, useful with any language
  • Improve the way we approach problems and make everyday work more efficient

How the lessons are organized

  • Theoretical and logical understanding of the topics
  • Understanding code output, error messages and special cases
  • Hands-on practice writing code and solving exercises

During the lessons we use a shared pad for the in-class exercises: keep it open!

Open the in-class pad

Schedule

Lesson Date Time Room
1 Monday 19/10/2026 9:00 – 13:00 Psico 1 - Aula ARCA
2 Wednesday 21/10/2026 9:00 – 13:00 Psico 1 - Aula ARCA
3 Friday 23/10/2026 9:00 – 13:00 Psico 1 - Aula ARCA
4 Tuesday 27/10/2026 9:00 – 13:00 Psico 1 - Aula ARCA
5 Thursday 29/10/2026 9:00 – 13:00 Psico 1 - Aula ARCA

Exam

Format
Several exercises covering the topics presented during the course.

Duration and mode
1 hour, in class.

Allowed material
You may use the material provided during the lessons. Other online material (or ChatGPT) is not allowed during the exam.

Slides

Each lesson is available as interactive slides (HTML) and as a PDF to download.

Introduction

Data structures

Programming

Extra

  • Recap before the exam: from objects to dataframes Slides PDF
  • Recap day 1: objects, operators and vectors Slides PDF
  • Recap Slides PDF
  • Loading files, visualizing data, saving Slides PDF

Exercises

Note

Exercises and their solutions will be published here during the course, lesson by lesson.