Week 3 - Data Wrangling

June 1 - 5, 2026

We cover the dplyr verbs filter, select, mutate, arrange, group_by, summarize, plus pivot_longer and pivot_wider. By Friday you should be able to take a messy CSV and produce useful summaries. Friday also introduces Git/GitHub, in time to use it for your project teamwork.

Daily plan

Date Topic Slides & Notes Code & Data
Mon Jun 1 Wrangling framework · summarise + group_by Slides · Page · PDF day10-activity.R
Tue Jun 2 select, filter, mutate, arrange Slides · Page · PDF day11-activity.R
Wed Jun 3 Putting it together: from messy CSV to summary table Slides · Page · PDF day12-activity.R
Thu Jun 4 Reshaping: pivot_longer, pivot_wider Slides · Page · PDF day13-activity.R
Fri Jun 5 Quiz 3 · Git/GitHub concepts + demo Slides · Page · PDF day14-activity.R

Readings due this week

  • Before Mon: Data Computing Ch 7 (DC §7.1-7.7): data wrangling
  • Before Tue: Data Computing Ch 10 (DC §10.1-10.6): more data verbs
  • Before Thu: Data Computing Ch 12 (DC §12.1): wide vs. narrow data
  • Before Fri: Data Computing Ch 9 (DC §9.1-9.2): collaboration and reproducibility with git

Assignments due this week

  • HW 3: due Friday Jun 5, 11:59 p.m.
  • Project Team formation: due Thursday Jun 4, 11:59 p.m.
  • Quiz 3: in class Friday Jun 5

Heads up for the weekend

  • Install GitHub Desktop or configure Git locally over the weekend.
  • By Monday Jun 8, your project team should have a working GitHub repo with all members able to push.