How to follow along in this class

0.3 Class notes

I will use the whiteboard and Rstudio for teaching. The notes and code will be based of of what is available in this document.

0.3.1 Written notes

Because I will be writing on the whiteboard for written notes, you can

  • Follow along with your own notebook.
  • Print the notes and add your own. To print the notes, Push the lines in the hover menu at the top to close the sidebar and then print to pdf or paper in your browser. Please print two-sided.
  • Save as a PDF and open in Notes app on a tablet where you can annotate the file.

0.3.2 Code notes

The code examples in the course may be fully written in the notes, or they may be barebones that we complete together in class. I will try to update the code in this document, so that the code is completed here after we have written it in class. To follow along with R code you can

  • Create an Rmarkdown file with a section for each chunk of example code we run and complete the code as we complete it in class.
  • Write the code in separate .R scripts organized in a file for the course.

0.4 Labs and homeworks

This document and all the files in the course are compiled using Rmarkdown. For completing the labs and homework assignments, I’m assuming that you will download the files and type your answers into the documents. There will be a bit of a learning curve, so it’s best to start working with it on the first assignments, so that you don’t feel too overwhelmed trying to learn Rmarkdown and the course content.

Check out the Week 1 lab assignment as an example of the folder structure I will use for homework and labs. You can download the whole folder and work from there. There are the following files in the folder that you need to pay attention to:

  • lab1_2.Rproj - this is R project file that opens up a saved workspace in Rstudio.
  • lab1_2.Rmd - this is the Rmarkdown file that you can edit to complete your answers.
  • lab1_2.html - this is the output from the Rmarkdown file. When you add your answers and hit the Knit button in Rstudio it will compile this file. You can change the format between html/pdf/docx.

The other files are intermediate files created after you push the Knit button.