Week 5 Readings
summarize() and group_by(), doing things with multiple tables (left_join() etc), reshaping data (i.e. pivot_longer())
Required
group_by()Data Transformation (3.5-3.6) from R for Data Science (2e)- The 1st edition’s Section 5.6 on Grouped summaries with
summarise()is more detailed (wordier) and worth looking at as well. - The 1st edition also has Section 5.7 on Grouped mutates (and filters) that I did not see in the 2nd edition. Please let me know if you find this content in the 2nd edition!
- The 1st edition’s Section 5.6 on Grouped summaries with
- Aggregating data with
summarizeandmap- we will covermap()androwwise()later, butsummarizeandmutatewithacrossare described here. You may want to re-visit this when we get topurrr.
Optional
- This column-wise operations vignette will be useful for the next couple classes.
The following resources are optional reading, but quite helpful in your Quarto journey.
- Quarto Cheatsheet
- Quarto Guide
- Quarto Reference
- Chapter 28: Quarto from R for Data Science (2e)