ChkYrs {MSEtool} | R Documentation |
Check the years to summarize performance
Description
Check the years to summarize performance
Usage
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.
|
MSEobj |
An object of class |
Value
A numeric vector of length 2 with year indices to summarize performance
Examples
## Not run:
MSE <- runMSE()
ChkYrs(NULL, MSE) # returns c(1, MSE@proyears)
ChkYrs(c(2,5), MSE) # returns c(2,5)
ChkYrs(c(70,80), MSE) # returns c(MSE@proyears-10,MSE@proyears)
ChkYrs(5, MSE) # returns c(1,5)
ChkYrs(-5, MSE) # returns c(46,50)
## End(Not run)
[Package MSEtool version 3.7.4 Index]