ExcludeTimes: Exclude a 'timespan' from an xts object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ExcludeTimes.R

Description

Exclude a timespan from an xts object

Usage

1
  ExcludeTimes(x, timespan)

Arguments

x

xts object

timespan

xts-style time-of-day subset

Value

xts object that does not include data during the specified timespan

Author(s)

Garrett See

See Also

TimeOfDaySubset

Examples

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]

qmao documentation built on May 2, 2019, 4:54 p.m.