expires.xts: xts expires extraction method

Description Usage Arguments Value Author(s) See Also

Description

determines (or estimates) the expiration from an xts object by either finding the last row that is not NA or by passing the name/symbol of the xts object to expires.character

Usage

1
2
3
## S3 method for class 'xts'
expires(x, Date, expired = TRUE, silent = FALSE,
  src = c("data", "instrument"), ...)

Arguments

src

either “data” or “instrument”.

Value

If src is “data”, the returned value will be the index of the last price that is not NA (price is determined by quantmod:::getPrice. getPrice arguments symbol and prefer can be passed through dots.)

If src is “instrument” the symbol of the xts object will be passed to expires.character

Author(s)

Garrett See

See Also

expires.instrument, expires


FinancialInstrument documentation built on May 2, 2019, 3:41 a.m.