ExcludeDates: Exclude one or more days from an xts object

Description Usage Arguments Value Note Author(s) Examples

View source: R/ExcludeDates.R

Description

remove one or more days of data from an xts object

Usage

1
  ExcludeDates(x, exclude)

Arguments

x

An xts object

exclude

character vector of dates

Value

an xts object that does not contain any rows from the dates specified by exclude

Note

be careful passing POSIXct objects to exclude as as.Date.POSIXct has tz="UTC" hardcoded.

Author(s)

Garrett See

Examples

1
2
3
data(sample_matrix)
x <- as.xts(sample_matrix)
head(ExcludeDates(x, exclude = c("2007-01-05", "2007-01-03")))

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