simStartingPop: Create starting population

View source: R/10-simStartingPop.R

simStartingPopR Documentation

Create starting population

Description

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'.

Usage

simStartingPop(adults, maxAge, oceanSurvival, spawnRecruit)

Value

A list containing the initial population size, number of spawners and number of non-spawning individuals for the first year of simulation.

Examples

test <- simStartingPop(1e4, 13, 0.45)
sum(test$spawningPool)
plot(test$spawningPool, type = "l")

danStich/shadia documentation built on Nov. 2, 2023, 6:43 a.m.