Skip to main content

Week 6: Advanced Wrangling, Joins & Tidy Data

Oct 7, 2026 · 2:00–4:40 PM · Bobst LL138

Before class

  • Read: R02Pro Ch 8.5–8.8, Ch 9
  • Review the newly released weekly exercise and prepare questions.
  • Complete Weekly Exercise 5 (due tonight at 11:59 PM).
  • 🔍 Proofreading corner: spot a typo or unclear passage in Ch 8.5–8.8 or Ch 9? Submit a PR or issue for extra credit (see syllabus).

Topics

  • Grouped operations: group_by() and summarize()
  • Counting and proportions: count(), n()
  • Relational data & two-table joins: left_join(), inner_join(), anti_join()
  • Tidy data principles and reshaping: tidyr::pivot_longer() and pivot_wider()
  • Handling missing values: drop_na(), replace_na()

Materials

Due

  • Weekly Exercise 5 (due tonight at 11:59 PM)
  • In-class exercise 6 (pushed to GitHub by end of class)