getIndex-methods: Retrieve index value based on dates.

getIndexR 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)

casact/cascsim documentation built on Nov. 12, 2022, 11:53 p.m.