powered by
Utility functions for accessing the boundary dates for each element of a grates object.
date_start(x)date_end(x)
date_end(x)
The requested start and end dates for each element in the input.
grouped date vector.
dates <- as.Date("2020-01-01") + 1:9 week <- as_isoweek(dates) date_start(week) date_end(week) period <- as_period(dates, n = 3) date_start(period) date_end(period)
Run the code above in your browser using DataLab