expand_to_daily: Expand Data to Daily Frequency
Description
Expands the input data frame to a daily frequency, filling in any missing
dates within the observed range.
Usage
expand_to_daily(df_long, prep_fun)
Value
A data frame with daily dates and preprocessed value
column.
Arguments
- df_long
[mandatory] (data.frame) A long-format data frame with at
least the columns id
and date
.
- prep_fun
[mandatory] (function) Function used for pre-processing.