View source: R/10-simStartingPop.R
simStartingPop | R Documentation |
Internal function for creating a starting population of fish based on a draw from a negative binomial calibrated to adult spawning numbers. Number of spawners is not exact match to 'adults'.
simStartingPop(adults, maxAge, oceanSurvival, spawnRecruit)
A list containing the initial population size, number of spawners and number of non-spawning individuals for the first year of simulation.
test <- simStartingPop(1e4, 13, 0.45)
sum(test$spawningPool)
plot(test$spawningPool, type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.