expand_dates | R Documentation |
expand dates between start_date and end_date
expand_dates(d, by)
d |
data.frame or tibble with columns called 'start_date' and 'end_date' |
by |
time interval to expand dates (e.g., 'day', 'week', etc) |
long data.frame or tibble with column called 'date' including all dates between start_date and end_date
## Not run:
d <- data.frame(
start_date = check_dates(c("1/1/21", "1/2/21", "1/3/21")),
end_date = check_dates(c("1/7/21", "1/8/21", "1/9/21"))
)
expand_dates(d, by = "day")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.