Week 5, Part 2: Working with Dates using lubridate

1 Learning Objectives

  • recognize structure of how dates were stored (e.g., day-month-year, month-day-year, month-day-year-hours-minutes)
  • specify time zones for data variables extract elements of a date variable
  • create intervals of time using the %–% operator
  • check if a date is within an interval using the %within% operator

📖 Readings: 45 min

📽 Optional Videos: 15 min


2 Dates with lubridate

📖 Required Reading: R4DS 17: Dates and Times

📽 Optional Video: Working wtih Dates