Strings and regular expressions

Announcements

Homework - Week 5

  • Will be due Monday at 11:59pm
  • We continued to provide scaffolded code in homework-05.qmd
  • We also provided a version without scaffolded code, named homework-05-blank.qmd
    • This file will Render without any edits, unlike homework-05.qmd
  • Note: The last 1-2 questions are fairly involved. They are meant as an opportunity to practice, not a source of stress. For Prelim 1 on October 2, we will not ask you to write such long pieces of code from scratch. However, we may ask you to write short code snippets, or outline the key steps to approach a more complicated programming task conceptually (in words, not code), or both.

Prelim 1 overview

  • October 2 at 7:30pm in person in Warren Hall
    • Will post room assignments to canvas in advance
  • Format: 75-minute paper exam, closed-book (-notes, -computer, etc.)
  • It will emphasize both concepts and syntax
  • We will have multiple question types, including but not limited to:
    1. multiple choice
    2. short answer questions that stress concepts
    3. explain whether/why a code snippet we give you would run/fail
    4. tell us what some code would return
    5. explain how you approach a coding task conceptually
    6. name key functions we have learned
    7. write brief code snippets
  • We will post more information on canvas early next week

Prelim 1 preparation

  • Complete the homework for this week
    • Attend regular Friday and Monday office hours as needed
  • We will offer practice questions early next week
  • Come to class on Sep 30 for the review session
  • Come to Prof. Gerarden’s office hours:
  • Optional: come to class on Oct 2 for TA office hours

Plan for today

  • Questions? 🙋‍♀️
  • Navigate to posit.cloud and open the project example-05 in our course workspace
  • Work through strings-practice.R in example-05
  • Solutions will be posted after class

Cheatsheets

Click here to download the stringr cheatsheet