DATA 151, Fall 2023, Lab 04

Lab 04: Data Wrangling

(This lab is heavily based on material created by Jenny Smetzer, William Hopper, Beth Brown, and Albert Y. Kim, with minor modifications.)

The main instructions for this lab can be found here, with the following modifications:

Homework 2

In section 3.9 of our textbook, do “Learning check” 3.20 (LC3.20). In addition, choose an appropriate plot to display the result graphically.

Write an R Markdown file containing (1) all R code used, (2) explanations for each part of your code, (3) a table showing the result, and (4) your plot.

To produce a nice display of the table, use the kable function from the knitr package. See this page for the basics of how to use it.

After knitting, print out the document and hand it in on Wednesday, October 4, 9:00 AM.