🐣 Session 1 (“Beginner”)

This first session provides a gentle introduction to R for those new to the language. We’ll explore what makes R a widely-used tool for data analysis and how it compares to alternatives such as Python, Stata, and SPSS.

We’ll cover essential building blocks of the R language, including using the console, installing packages, writing scripts, and navigating help files. You will learn about how to handle different data types, such as missing values and factors, and techniques for subsetting objects. We’ll finish by taking a first look at using and creating functions in R.

Timetable

Warning: The theme_tt() function is deprecated. Please use format-specific or style-specific theme functions instead:

Format-specific functions:

* theme_html()
* theme_latex()
* theme_typst()

Style-specific functions:

* theme_grid()
* theme_revealjs()
* theme_rotate()
* theme_striped()
* theme_empty()
Time Topic Slides and practicals
13:00 — 13:20 Welcome to the course
What to expect when learning R
HTML
13:20 — 14:00 What are R and RStudio?
How does R compare to other languages?
PDF
14:00 — 14:40 Data types
Objects and object assignment
PDF
14:40 — 15:20 Break and Practical 1 HTML
15:20 — 15:40 Data frames
Importing and exporting data
PDF
15:40 — 16:10 Subsetting
16:10 — 16:40 Break and Practical 2 HTML
16:40 — 16:55 Using functions in R
Writing your own functions
PDF
16:55 — 17:00 Wrap up and looking ahead