Description Usage Arguments Value Examples
Fill in missing dates in a dataframe with intermittent dates
1 | fill_dates(df, date_col, start_date, end_date)
|
df |
a dataframe where at least 1 column has dates |
date_col |
name of the column that has dates |
start_date |
start date, e.g. "2019-01-01" |
end_date |
end date, e.g. "2019-02-01" |
the dataframe you started with, expanded to include all missing dates as rows
1 2 | df <- data.frame(dates = c("2019-01-01", "2019-02-01"), numbers = c(3,4))
df %>% fill_dates(dates, "2019-01-01", "2019-02-08")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.