expires.character {FinancialInstrument} | R Documentation |
character expires extraction method
Description
if no instrument
can be found by the id of x
, or if the
instrument
does not have an expires
attribute, an attempt
will be made to infer the year and month of expiration using parse_id
in which case the returned value will be a string of the format
“YYYY-MM”. Presently, Date
and expired
will be ignored
if x
is not the name of an instrument
Usage
## S3 method for class 'character'
expires(x, Date, expired = TRUE, silent = FALSE, ...)
Arguments
Date |
Can be a Date or character string. When |
expired |
TRUE/FALSE. This determines which date will be used when
|
silent |
silence warnings? |
Author(s)
Garrett See