ChkYrs: Check the years to summarize performance

Description Usage Arguments Value Examples

View source: R/PMobjects.R

Description

Check the years to summarize performance

Usage

1
ChkYrs(Yrs, MSEobj)

Arguments

Yrs

Numeric vector of length 2 with year indices to summarize performance. If NULL, the performance is summarized over all projection years. Yrs can also be length one, in which case if it is positive it is the first Yrs and if negative the last Yrs of the projection period.

MSEobj

An object of class MSE

Value

A numeric vector of length 2 with year indices to summarize performance

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
MSE <- runMSE()
ChkYrs(NULL, MSE) # returns c(1, [email protected])
ChkYrs(c(2,5), MSE) # returns c(2,5)
ChkYrs(c(70,80), MSE) # returns c([email protected],[email protected])
ChkYrs(5, MSE) # returns c(1,5)
ChkYrs(-5, MSE) # returns c(46,50)

## End(Not run)

DLMtool documentation built on March 13, 2020, 2:52 a.m.