🐣 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

Time Topic Slides and practicals
Pre-course Introduction to R and RStudio
How does R compare to other languages?
PDF, VIDEO
13:00 — 13:20 Welcome to the course
What to expect when learning R
HTML
13:20 — 14:00 Objects and object assignment
Data types
PDF
14:00 — 14:30 Practical 1 HTML
14:30 — 14:40 Break
14:40 — 15:40 Data frames, importing data, subsetting PDF
15:40 — 15:50 Break
15:50 — 16:30 Practical 2 HTML
16:30 — 17:00 Using and writing functions
Control flow
PDF