Data Transformation III

Week 11, Fall 2024

Summary

This week we will attempt to accomplish two things:

  • Introduce a few additional concepts that could be useful later for final projects.
  • Begin practicing for Exam 02!

Learning Objectives

After completing this week, you are expected to be able to:

  • Use and transform strings using the stringr package.
  • Use and transform factors using the forcats package.
  • Use and transform dates and times using the lubridate package.

Reading

Link Source
Strings R4DS
Regular Expressions R4DS
Factors R4DS
Dates and Times R4DS

Cheatsheets

Link Source
ggplot2 Posit Cheatsheets
dplyr Posit Cheatsheets
readr Posit Cheatsheets
tidyr Posit Cheatsheets
stringr Posit Cheatsheets
forcats Posit Cheatsheets
lubridate Posit Cheatsheets

Data

Video

Title Link Mirror
11.1 - Welcome to Week 11 11.1 - YouTube 11.1 - ClassTranscribe
11.2 - Factors 11.2 - YouTube 11.2 - ClassTranscribe
11.3 - Dates and Times 11.3 - YouTube 11.3 - ClassTranscribe

Here is the one and only David Dalpiaz to talk about code style:

Title Link
11.4 - Style 11.4 - YouTube

Assignments

Assignment Deadline Credit
Lab 07 Thursday, November 7 100%
Quiz 07 Thursday, November 7 105%
Lab 08 Thursday, November 14 100%
Quiz 08 Thursday, November 14 105%

Starting this week, we will post a short practice “quiz” each weekday. These are optional (but highly recommended) opportunities to practice for the upcoming exam!

Office Hours

See Syllabus!