Learn R Programming

cascsim (version 0.4)

getIndex: 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 Index getIndex(object, dates)

Arguments

object

Index Object

...

Additional function arguments

dates

dates to get index information

Examples

Run this code
# NOT RUN {
xindex <- new("Index", indexID = "IDX1", tabulate = FALSE, annualizedRate = 0.03)
xindex<-setIndex(xindex)
xindex@monthlyIndex
dates<-as.Date("2015-12-31")
getIndex(xindex,dates)
# }

Run the code above in your browser using DataLab