• In-class demo of Lec06.R exercises (Click on RStudio Server in menu bar), in particular geom_bar(stat=bin) vs geom_bar(stat=identity) (the default)
  • UC Berkeley Admissions Analysis
  • Slides: Distinguishing between wide and tall (AKA tidy) formats and introducing the tidyr package for reshaping data.
  • tidyr::gather() vs tidyr::spread() illustrations
  • In-class exercise:
    • Packages to install:
      • tidyr for tidying/reshaping data
      • stringr for string/text/character manipulation
    • Code: Lec07.R
    • Data: popdensity1990_00_10.csv

After-Class Updates