The tidyverse package is required for this section and can be installed with:
tidyverse
install.packages('tidyverse')
For this practical, you can download this script.
The solutions are in this script.