View source: R/dates-manipulation.R
complete_dates | R Documentation |
Complete a data frame with missing combination of variables (date and group)
complete_dates(x, group = "id", time_step = "days")
x |
data.frame with a column date |
group |
character vector of group variables |
time_step |
character scalar (e.g., "hours", "days", "months") |
tibble with a regular and constant time step
Other date manipulation:
dates_from_files()
if(TRUE){
dates_comp <- complete_dates(
x = dates_miss,
group = c("id", "g"),
time_step = "months"
)
dates_comp
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.