Description Usage Arguments Value
For a dataset that should contain at least one observation for each day (or second, minute, hour, etc), add NA rows for the missing observations
1 | fix_date_continuity(dat, index, form = ymd, granularity = "days")
|
dat |
data frame with a date column that should contain a continuous stream of dates |
index |
index of column in |
form |
a lubridate parsing function in the |
granularity |
what are the datestream units? Choose one of |
a data frame, sorted by the dates in dat[,index]
, with the missing observations added. Dates in dat[,index]
will be formatted as POSIXct
, due to conversion with lubridate
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.