Lec07
Reshaping/tidying data with tidyr.
Announcements
*
In-Class
- In-class demo of
Lec06.R
exercises (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
tidyr
package for reshaping data. tidyr::gather()
vstidyr::spread()
illustrations- In-class exercise:
- Packages to install:
tidyr
for tidying/reshaping datastringr
for string/text/character manipulation
- Code:
Lec07.R
- Data:
popdensity1990_00_10.csv
- Packages to install: