getSSB: Calculate the SSB of species

View source: R/summary_methods.R

getSSBR Documentation

Calculate the SSB of species

Description

Calculates the spawning stock biomass (SSB) through time of the species in the MizerSim class. SSB is calculated as the total mass of all mature individuals.

Usage

getSSB(object)

Arguments

object

An object of class MizerParams or MizerSim'.

Value

If called with a MizerParams object, a vector with the SSB in grams for each species in the model. If called with a MizerSim object, an array (time x species) containing the SSB in grams at each time step for all species.

See Also

Other summary functions: getBiomass(), getDiet(), getGrowthCurves(), getN(), getYield(), getYieldGear()

Examples

ssb <- getSSB(NS_sim)
ssb[c("1972", "2010"), c("Herring", "Cod")]

mizer documentation built on Oct. 17, 2024, 9:07 a.m.