17 Dates and times

Learning objectives:

  • Create date and datetime objects.
  • Work with datetime components.
  • Perform arithmetic on timespans.
  • Recognize ways to deal with timezones in R.
library(tidyverse)
library(nycflights13)