Week 2: Vectors & Subsetting
Sep 9, 2026 · 2:00–4:40 PM · Bobst LL138
Before class
- Read: R02Pro Ch 2–3
- Review the newly released weekly exercise and prepare questions.
- Complete Weekly Exercise 1 (due Thursday Sep 10 at 11:59 PM, extended).
- 🔍 Proofreading corner: spot a typo or unclear passage in Ch 2–3? Submit a PR or issue for extra credit (see syllabus).
Topics
- Object assignment and naming
- Numeric, character, and logical vectors
- Patterned vectors; sorting; summary statistics
- Comparisons, subsetting, logical and set operations
Materials
- 📊 Lecture Slides: Interactive Presentation (HTML)
- 📝 In-Class Exercise: View Worksheet (HTML) · Download Starter Code (
.qmd) · or runget_worksheet(2)in your in-class repo - 💻 Weekly Exercise 2: Accept Assignment on Classroom 50 · How to do it, start to finish
Due
- Weekly Exercise 1 (due Thursday Sep 10 at 11:59 PM, extended)
- In-class exercise 2 (pushed to GitHub by end of class)