Data Assignment Template and Data

Download the template and move it into the relevant folder in OneDrive. Do the same with the dataset. Be sure to change the name of the .rmd file.

Getting Started

Open the R-markdown file. Change the title and author. Now look at the Data Assignment 1 page. You can start to follow along with the code. Let’s import the excel dataset using a code chunk.

Coding and Answering Questions

Now you can follow along with the assignment. You should replicate the code in your R markdown file. I suggest running “Knit” frequently to see if things work.

To answer a question, simply write down the question number and response.
For example:

Q1: This is my answer.

When you are done

Knit the file and create an html file. Submit this html. As soon as you submit it, the solution key will be released to you. You’ll want to compare your answers with the solution key. You can then correct any mistakes in your markdown file. For example:

Q1: This is my first answer.

Q1 Revised: This is my new answer after looking at the solution key.

Once you have reviewed all the questions and code, knit the file again, and resubmit your assignment. You will then get credit for the assignment.