Learn R Programming

mizer (version 1.0.1)

getSSB: 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)

# S4 method for MizerSim getSSB(object)

Arguments

object

An object of class MizerSim.

Value

An array containing the SSB (time x species)

Examples

Run this code
# NOT RUN {
data(NS_species_params_gears)
data(inter)
params <- MizerParams(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)
getSSB(sim)
# }

Run the code above in your browser using DataLab