Problem Set 1

Important

UPDATED: Due September 11th at 10:30 am on Canvas

Problem Set 1 is posted on Canvas. You have two options for how to complete the assignment.

  1. Type up your answers in a text processor and write your code in an R script. Submit a PDF of the answers as well as your Rscript (2 files).
  2. Use the RMarkdown file provided (.Rmd extension) and write your answers and code in the spaces provided. Submit the PDF that is “knitted” (1 file).1

Purpose

This first problem set will help you practice:

  1. Setting the working directory
  2. Loading data into R
  3. Viewing and understanding observations from the dataset
  4. Identifying the type of variables you are working with

You will use the following commands:

setwd()

read.csv()

head()

dim()

Criteria for success

In addition to providing the correct code and/or answer, a successful problem set will:

  1. Have clear explanations that demonstrate your knowledge of the material
  2. Use the “comment out” function to explain what the code is doing

Footnotes

  1. This route requires a few more tools. You need to install RMarkdown and TinyTeX. The upside? You can produce beautiful documents that show your code and output.↩︎