Data Science R Practicals and Exercises
2023-03-04
Instructions
These pages contain R Practicals and exercises for students on MAS109 and MAS5052. The Chapter exercises refer to the chapters in the lecture notes.
R Packages
To do the R practicals, you will need to install the R packages tidyverse
and rmarkdown
. Start RStudio and run the following command in the console window.
install.packages(c("tidyverse", "rmarkdown"))
R may ask you the question:
## There are binary versions available but the source versions are later.
## Do you want to install from sources the package which needs compilation?
You can answer n
to this.
R Markdown
You will need to use R Markdown for the R Practicals. A short tutorial with videos on R Markdown is available here