Description Usage Arguments Value Author(s) See Also Examples
Exclude a timespan
from an xts object
1 | ExcludeTimes(x, timespan)
|
x |
xts object |
timespan |
xts-style time-of-day subset |
xts object that does not include data during the
specified timespan
Garrett See
1 2 3 4 5 6 7 | .seq <- seq_len(864000)
a <- xts(.seq, Sys.time() + .seq)
b <- ExcludeTimes(a, "T01:00/T23:00")
diff(b)[diff(b) != 1]
b <- ExcludeTimes(a, "T02:00/T01:00")
diff(b)[diff(b) != 1]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.