Description Usage Arguments Value See Also
View source: R/MICE_initialization.R
This function creates the population matrix, Nmat, for a Species, whose dimension is either (nAges x nYears) if use_timestep is FALSE, or (nAges x (nYears * nSteps)) if use_timestep is TRUE. It fills Nmat[,year==1], based on values in the simulationParams object. It also dimensions empty vectors that will hold the value of recruitment residuals, fishing mortality and catch (for fished species), age 1+ biomass (for prey) and proportion mature-at-age, and calculates Nm[1], and sets R[1] to zero.
1 | initialize_N(Species, simulationParams, preynames)
|
Species. |
A species object. |
simulationParams. |
A simulationParams object that holds global values and input data. |
A modified Species object, with arrays initialized.
Other initialization: calibrate
,
distribute_byage
,
distribute_bytimestep
,
set_simParam
,
solve_age0_survival
Other parameter setting: get_params
,
get_prefs
, set_simParam
,
set_species
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.