-
All assignments should be submitted through Canvas
-
What files to submit:
- Week 1 - one text form, one .xlsx file
- Weeks 2-9 - a zip file containing one .R file & any data files needed to run it
- Week 10 - a link to a GitHub repository
- Weeks 11-13 - either a zip file containing one .R file & any data files needed to run it or a link to a GitHub repository containing the .R file and any data files needed to run it
Code Checklist
Make sure your code matches the provided answers
- At the bottom of each exercise a set of answers are provided. For full credit your answers should match those provided. For example, if there are three separate plots your code should produce three separate plots.
Clean up your code
Code should be easy to read and understand.
- Only include code and comments necessary for the assignment. Remove anything else (e.g., notes taken during class, commented code that isn’t needed anymore).
- Remove extra/duplicate files. Only turn in what is necessary for the assignment.
- Clearly label problems using comments.
Make sure your code runs like you think it does
Code should run from the start of the file to the end of the file without problems. To make sure this is true:
- Clear the R environment by clicking on the broom icon on the
Environment
tab. - Run the entire file by either clicking the
Source
button or using theCtrl-Shift-Enter
keyboard shortcut.
Work with data files appropriately
Code should run the same way regardless of which computer it is run on. In order to grade your code someone will need to run it on another computer. To make sure your code will work on another computer:
- Do not use setwd()
- Use relative paths, not absolute paths. E.g., use
data/mydata.csv
instead ofC:\Users\Batman\DataCarp\data\mydata.csv
. - Make filenames in the code match the actual filenames exactly including capitalization