group_dates_by_diff: Build Groups of Dates by Difference

Description Usage Arguments Examples

View source: R/create_date_ranges.R

Description

Build Groups of Dates by Difference

Usage

1
group_dates_by_diff(dates, diff_days = 1)

Arguments

dates

vector of Date objects

diff_days

maximum difference between consecutive dates that may occur for dates within the same group

Examples

1
2
dates <- as.Date(c("2019-07-01", "2019-07-03", "2019-07-06", "2019-07-08"))
fhpredict:::group_dates_by_diff(dates, diff_days = 2)

KWB-R/fhpredict documentation built on Nov. 1, 2020, 5:58 a.m.