R/summary_methods.R
getN.Rd
Calculates the number of individuals within user-defined size limits, for
each time and each species in the MizerSim
object. The default option
is to use the whole size range. You can specify minimum and maximum weight or
lengths for the species. Lengths take precedence over weights (i.e. if both
min_l and min_w are supplied, only min_l will be used)
getN(sim, ...)
sim | An object of class |
---|---|
... | Arguments passed on to
|
An array containing the total numbers (time x species)
Other summary functions:
getBiomass()
,
getDiet()
,
getGrowthCurves()
,
getSSB()
,
getYieldGear()
,
getYield()
if (FALSE) { data(NS_species_params_gears) data(inter) params <- newMultispeciesParams(NS_species_params_gears, inter) # With constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) getN(sim) getN(sim, min_w = 10, max_w = 1000) }