| dates_to_periods | R Documentation |
Collapse days into periods of consecutive days
dates_to_periods(dates)
dates |
A sorted |
A data.table with the columns start_date, end_date and
n_days, with one row per period of consecutive days.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.