Week 6 · Tuesday, Nov 3 · 9:50-10:55 am · Self-guided
On your own, no AI:
Keep a script as you go: week06/ds06_notes.R, one heading per exercise, your final answer under each.
Important
3 points: 2 for the PDFs on Canvas, 1 for this afternoon’s check.
?help pages, the lesson pages, Thursday’s slides, your notes, asking meStuck for more than 10 minutes on one exercise? Raise your hand.
|> as “and then”year, not gapminder$yeargm07 <- gapminder |> ...Lost in a long pipe? Run it one line at a time: select up to just before a |> and run. Check nrow() after each step.
At the bottom of week06/ds06_notes.R:
Be specific. “dplyr” doesn’t help; “why Exercise 4 needs mutate() before the second filter()” does. You’ll use it this afternoon.
Canvas: both PDFs by Wednesday 11:59 pm. Printing is optional.
1:30 pm: bring your laptop, charged, and download survey_wave2.csv and buildings.csv into data/. Mid-quarter report due today.

STAT 266A · Fall 2026 · UC Santa Cruz