View source: R/generateCycle.R
genCycle | R Documentation |
This function generates cycle lines necessary to model Fraser River stocks exhibiting delayed density dependence (e.g. Lower Shuswap). Note that it is not a universal function - it can only generate four year cycles and assumes that the observed data begins after 1900.
genCycle(firstObs, simLength)
firstObs |
A numeric representing the first year of observed data. |
simLength |
A numeric representing the length of the simulation period. |
Depends on the helper function checkInteger
.
Returns a numeric vector representing cycle line IDs for output data
with length(simLength)
.
genCycle(firstObs = 2009, simLength = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.