Description Usage Arguments Value Examples
View source: R/extinctionCheck.R
This function checks whether a population has gone quasi-extinct based on spawner abundances, generation length, and the extinction threshold.
1 | extinctionCheck(y, gen, extinctThresh, spwnMat)
|
y |
A numeric representing the current year within the simulation (i.e. has a quasi-extinction occurred based on abundance in y-gen:y). |
gen |
A numeric representing generation length for the species being modeled. |
extinctThresh |
A numeric representing the assumed quasi-extinction threshold. |
spwnMat |
A matrix of spawner abundances with ncol = nCU and minimum nrow = gen. |
Returns a binary vector of length = ncol(spwnMat) with ones representing extinct stocks/CUs.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.