Learn R Programming

cascsim (version 0.4)

setMonthlyIndex<-: Set monthly index values.

Description

setMonthlyIndex<- sets monthly index values.

Usage

setMonthlyIndex(this, ...) <- value

# S4 method for Index,vector setMonthlyIndex(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
setMonthlyIndex(xindex)<- rep(1,360)
xindex<-setIndex(xindex)
xindex@monthlyIndex
# }

Run the code above in your browser using DataLab