Split a date range into multiple, shorter date ranges
Source:R/split_date_range.R
split_date_range.RdSplit a date range into multiple, shorter date ranges
Arguments
- date_range
A length-2 vector of Dates or POSIXcts representing the start and end of a date range.
- max_duration
A string representing the maximum duration of each split date range. Defaults to "90 days".
- as_list
A logical indicating if the output should be a list of data frames (one for each split date range) or a single data frame with all split date ranges. Defaults to
FALSE.