Description Usage Arguments Value Examples
Expand a date range
1 | expand_date(.data, date_variable, .aggregate_date = "year", .fill = 0)
|
.data |
tbl_df with a R-readable date column |
date_variable |
R-readable date column |
.aggregate_date |
level that the temporal unit expansion entries should be aggregated to |
.fill |
specify what to fill numeric values with; default is 0 |
tbl_df with the date gaps filled
1 2 3 4 5 6 7 | require(dplyr)
connect_phx_db() %>%
filter(code=="041") %>%
select(date,code) %>%
head(30) %>%
collect() %>%
expand_date(date,.aggregate_date = "day",.fill=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.