Description Usage Arguments Value
View source: R/data_to_daily.R
Takes in a dataset with implicit missing data (missing rows) or interval data and expands it into daily data, filling in with NAs, and then optionally linearly interpolating all NA values.
1 | data_to_daily(data_notdaily, valuefield, interpolate = TRUE)
|
data_notdaily |
Input dataset with values in valuefield, and date field in "obs_date". Function will group on all other fields present and create combinations of those plus the date. |
valuefield |
Field that the observation values are in. |
interpolate |
Logical to whether or not interpolate all NAs in dataset before returning. |
Returns tibble expanded to have either explicit missing, or linearly interpolated values for every date from the minimum to maximum dates in the original dataset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.