Skip to main content

Week 3: Matrices, Lists, Data Frames & Data Import

Sep 16, 2026 · 2:00–4:40 PM · Bobst LL138

Before class

  • Read: R02Pro Ch 4–5
  • Review the newly released weekly exercise and prepare questions.
  • Complete Weekly Exercise 2 (due tonight at 11:59 PM).
  • 📝 Quiz 1 (20 min, covers Weeks 1–2) will be held during the last 30 minutes of class. Practice with the sample quiz first: same length, same format, answers included.
  • 🔍 Proofreading corner: spot a typo or unclear passage in Ch 4–5? Submit a PR or issue for extra credit (see syllabus).

Topics

  • Matrices and 2D indexing [r, c]
  • Lists: heterogeneous data and nested indexing (list$name, list[[i]])
  • Data Frames & Tibbles: creation, column access, and structure (str(), summary())
  • Importing data: CSV (readr::read_csv) and Excel (readxl::read_excel)
  • Exporting cleaned data

Materials

Due

  • Weekly Exercise 2 (due tonight at 11:59 PM)
  • In-class exercise 3 (pushed to GitHub by end of class)
  • Quiz 1 (20 min, covers Weeks 1–2)