Lab 2: The Shape of Data

You should clone this repository to get started with this lab. The URL to clone is You can find detailed instructions on how to do this here.



  1. Identifying the characteristics of “tidy” data.

    a. What makes the following example “non-tidy”?

    b. Inspect the R object [cmpdata.RData] from the file of the same name. (You can access this by opening the file from the Files pane of Rstudio.) What makes this data non-tidy?

  2. Reshaping in R.

    Work with the file me314-assignment2-LASTNAME-FIRSTNAME.Rmd (after renaming it!)


Solution to Assignment 2 as: