DS 5: Vectorization + Functions

Week 5 · Tuesday, Oct 27 · 9:50-10:55 am · Self-guided

Dr. Marcela Alfaro Córdoba

This morning

On your own, no AI:

  1. Lesson 9: Vectorization: 4 exercises
  2. Lesson 10: Functions Explained: 5 exercises

Keep a script as you go: week05/ds05_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.

Same rules as always

  • Allowed: ?help pages, the lesson pages, Thursday’s slides, your notes, asking me
  • Not allowed: any chatbot, Positron Assistant, inline suggestions, a classmate’s code

Stuck for more than 10 minutes on one exercise? Raise your hand.

At 10:45: two last comments

At the bottom of week05/ds05_notes.R:

# 1) The hardest part to understand:
#
# 2) Something that hasn't quite clicked yet:
#

Be specific. “Functions” doesn’t help; “why above doesn’t exist after the function runs” does. You’ll use these this afternoon.

Before you go

Canvas: both PDFs by Wednesday 11:59 pm. Printing is optional.

1:30 pm: bring your laptop, charged. A classmate will check your DS on it.