getIndex {cascsim} | R Documentation |
Retrieve index value based on dates.
Description
getIndex
get a time index to reflect inflation, underwriting cycle or seasonality.
Usage
getIndex(object, ...)
## S4 method for signature 'Index'
getIndex(object, dates)
Arguments
object |
Index Object |
... |
Additional function arguments |
dates |
dates to get index information |
Examples
xindex <- new("Index", indexID = "IDX1", tabulate = FALSE, annualizedRate = 0.03)
xindex<-setIndex(xindex)
xindex@monthlyIndex
dates<-as.Date("2015-12-31")
getIndex(xindex,dates)
[Package cascsim version 0.4 Index]