Learn R Programming

cascsim (version 0.4)

setYearlyIndex<-: Set yearly index values.

Description

setYearlyIndex<- sets yearly index values. Monthly index will be constructed assuming constant growth rate during a year.

Usage

setYearlyIndex(this, ...) <- value

# S4 method for Index,vector setYearlyIndex(this) <- value

Arguments

this

Index Object

...

Additional function arguments

value

Numeric Vector

Examples

Run this code
# NOT RUN {
xindex <- new("Index")
setID(xindex)<-"IDX1"
setTabulate(xindex)<-TRUE
setYearlyIndex(xindex)<- c(1,1.05,1.2,0.95,1.3)
xindex@yearlyIndex
# }

Run the code above in your browser using DataLab