View source: R/scraper-futures.R
maturity2date | R Documentation |
Get the corresponding maturity date for the three characters string that represent maturity of futures contracts.
maturity2date(x, expr = "first day", refdate = NULL)
x |
a character vector with three letters string that represent maturity of futures contracts. |
expr |
a string which indicates the day to use in maturity date.
See |
refdate |
reference date to be passed. It is necessary to convert old
maturities like JAN0, that can be Jan/2000 or Jan/2010. If |
a Date vector with maturity dates
maturity2date(c("F22", "F23", "G23", "H23", "F45"), "first day")
maturity2date(c("F23", "K35"), "15th day")
maturity2date(c("AGO2", "SET2"), "first day")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.