Practical worksheets
On this page, you’ll find practical worksheets (the most recent appearing first) and data files that we’ll use to build up our skills in R and RStudio as the module progresses. PDF links will open in new tabs. To control where you save the data files, it’s probably best to right click the links to the CSV file(s) and choose “Save link as…” or similar.
The practical worksheets will also often contain a pen-and-paper element; these exercises should be good practice for the kinds of question that will appear in the final exam.
During practicals, Adam and Kim are happy to answer any questions you may have relating to current or past practical sheets, so do make the most of their help during the practicals.
Assessed Practical
Above is the data for the assessed practical. The submission point can be found on Blackboard.
Practical 10 - 2025-03-13
Topics include:
Contrasts
Two-way ANOVA
Practical 09 - 2025-03-27
Topics include:
One-way ANOVA
Practical 08 - 2025-02-13
Topics include:
Pen-and-paper Poisson and Chi-Squared practice questions
Practical 07 - 2025-01-30
Topics include:
Pen-and-paper Binomial practice questions
Functions in R
Practical 06 - 2024-12-13
Topics include:
Two sample t-test practice questions
t-tests in R
Practical 05 - 2024-11-29
Topics include:
Practising t-tests and confidence intervals
Practical 04 - 2024-11-15
Topics include:
The houses data
The first assignment (worth 20% of the module mark)
Practical 03 - 2024-11-01
Topics include:
Generating data from a particular distribution
Q-Q plots
Introducing ggplot2
Sampling a large dataset
Scatterplots, histograms, and boxplots in ggplot2.
Linear regression
Practical 02 - 2024-10-18
Topics include:
Tables
Proportional tables
Flattened tables
Barcharts
Subsetting
The command tapply
Practical 01 - 2024-10-04
In this practical we meet R for the first time. Main points include:
Getting started
Mathematical operations in R
Warnings and errors
Assigning and removing variables
Vectorised arithmetic
Loading data from a CSV file
Descriptive statistics - the five number summary
Boxplots
Scatterplots
Saving workspaces and history files