Description Usage Arguments Value Note Author(s) Examples
remove one or more days of data from an xts object
1 | ExcludeDates(x, exclude)
|
x |
An xts object |
exclude |
character vector of dates |
an xts object that does not contain any rows from the
dates specified by exclude
be careful passing POSIXct objects to exclude as
as.Date.POSIXct
has tz="UTC"
hardcoded.
Garrett See
1 2 3 | data(sample_matrix)
x <- as.xts(sample_matrix)
head(ExcludeDates(x, exclude = c("2007-01-05", "2007-01-03")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.