Lec07
Reshaping/tidying data with tidyr.
Announcements
*
In-Class
- In-class demo of
Lec06.Rexercises (Click on RStudio Server in menu bar), in particulargeom_bar(stat=bin)vsgeom_bar(stat=identity)(the default) - UC Berkeley Admissions Analysis
- Slides: Distinguishing between wide and tall (AKA tidy)
formats and introducing the
tidyrpackage for reshaping data. tidyr::gather()vstidyr::spread()illustrations- In-class exercise:
- Packages to install:
tidyrfor tidying/reshaping datastringrfor string/text/character manipulation
- Code:
Lec07.R - Data:
popdensity1990_00_10.csv
- Packages to install: