ChkYrs | R Documentation |
Check the years to summarize performance
ChkYrs(Yrs, MSEobj)
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 |
A numeric vector of length 2 with year indices to summarize performance
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.