Files Download

Throughout the semester, we may need a few datasets for our hands-on tutorial sessions. All the data we use in class are available on the Dropbox drive. Please download the data from the following Dropbox Drive (password-protected) and save the data files under your working directory. (You don’t have to download all files on the drive. Instead, you can download the specific file you need for a particular task/week/assignment.)


Working Directory Setup

It is highly recommended that you create a Working_Directory to save all the course materials (i.e., data and scripts). Under your working directory, you place the data files under a sub-directory, called demo_data. Also under your Working_Directory are all the R script files you have created or downloaded. This is the directory structure I use for the course materials.

With the above folder structure, if you want to access a particular file in the demo_data in your R script, you may access it using the following path:

A final note is that it is strongly recommended to always set your working directory of the R environment to your course Working_Directory before you run the scripts.

Suggestions

A few more suggestions regarding the naming of the files and directories:

The above principles should apply to all the intermediate directories on the path that leads to your Working_Directory. Sticking to these principles will definitely make your life much easier. Please trust me.