Chapter 7 Files exercises

The next 2 chapters each cover an exercise looking at a different file. The exercises are comprised of challenges requiring you to read and write files as well as index data frames.

Use your "Exercises.R" file, ensuring you are using code sections to separate the different exercises and challenges Additionally, set your working directory to your main workshop directory.

Create a new directory called "Chapter_7-9" within your main workshop directory to download the files:

As the files we are going to read are in a different directory to our working directory we will have to specify the directory along with the file names. For example, to read in the "Liverpool_beaches.csv" file from the main directory you could use the following command.

liv_beaches_df <- read.csv("Chapter_6/Liverpool_beaches.csv", row.names = 1)

Ensure you also write any output to "Chapter_7-9".