Description Usage Arguments Details Value Note Author(s) Examples
View source: R/MakeStrictlyRegular.R
Fill in gaps in data, by day, using na.locf
1 2 3 | MakeStrictlyRegular(x, timespan = "", by = "min",
tz = "America/Chicago", verbose = TRUE, na.rm = TRUE,
maxgap = 5)
|
x |
xts object |
timespan |
time-of-day subset string (e.g.
"T08:30/T15:00"). seealso
|
by |
increment of the time sequence. seealso
|
tz |
timezone to use with |
verbose |
logical. print to standard output the number of rows that were added to make the object strictly regular? |
na.rm |
Should leading |
maxgap |
see |
By default, if there are 5 or more missing observations,
they will not be filled in. This can be adjusted with
maxgap
. Also, note that this function operates on
each day separately. Therefore, missing values at the
beginning of a day will not be filled-in.
a strictly regular xts object
ALPHA code; not perfect
Garrett See
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.