Lecture materials

Lecture recordings will be posted on this page. However, live lectures and office hours are restricted to enrolled students and are accessible only through Canvas.

April 6, Course introduction and getting started with R

Before class

  • Install R, RStudio and tidyverse. You must do this before the session, as I will not devote lecture time to it! If you are having trouble, attend the office hours at 9am on April 7.

  • Required reading: Variable types

  • Read through the showcase document. No need to study this in detail yet - the document briefly demonstrates most of the techniques that we'll cover in this class, so you'll know what to look forward to!

Materials

Extras

April 8, R objects, variable types and data tables

Before class

Materials

Extras

April 13, Data visualisation with ggplot, part 1

Before class

Materials

Extras

April 15, Data visualisation with ggplot, part 2

Note: Extras and "before class" from the previous lecture are also relevant to this one

Materials

April 20, dplyr: data manipulation and functions

Before class

Materials

Extras

  • Data Wrangling cheat sheet (Note: this sheet uses gather and spread, which are out-dated. We'll, talk about this sort of think in Lecture 7)

April 22, Rmarkdown documents, presentations and workflow

Before class

  • Instead of slides, this lecture will be conducted using two R Markdown documents, so download them and open them in RStudio before the lecture.

Materials

Extras

April 23, Project proposal due

April 27, Pastes, merges and joins: combining tables and dataset grammar

Extras

April 29, Useful tips, packages and FAQs

Materials

Extras

May 7, Final project due