Week 5: Data Wrangling with dplyr & Pipes
Sep 30, 2026 · 2:00–4:40 PM · Bobst LL138
Before class
- Read: R02Pro Ch 8.1–8.4, 8.9
- Review the newly released weekly exercise and prepare questions.
- Complete Weekly Exercise 4 (due tonight at 11:59 PM).
- 📝 Quiz 2 (20 min, covers Weeks 3–4) will be held during the last 30 minutes of class.
- 🔍 Proofreading corner: spot a typo or unclear passage in Ch 8.1–8.4 or 8.9? Submit a PR or issue for extra credit (see syllabus).
Topics
- The tidyverse data philosophy and the native pipe (|>)
- Row filtering with filter() and logical conditions
- Column selection, renaming, and helpers with select() and rename()
- Creating and modifying variables with mutate()
- Sorting datasets with arrange() and desc()
Materials
- 📊 Lecture Slides: Interactive Presentation (HTML)
- 📝 In-Class Exercise: View Worksheet (HTML) · Download Starter Code (
.qmd) · or runget_worksheet(5)in your in-class repo - 💻 Weekly Exercise 5: Accept Assignment on Classroom 50 · How to do it, start to finish
Due
- Weekly Exercise 4 (due tonight at 11:59 PM)
- In-class exercise 5 (pushed to GitHub by end of class)
- Quiz 2 (20 min, covers Weeks 3–4)