-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathgetSSB.Rd
37 lines (37 loc) · 1016 Bytes
/
getSSB.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_methods.R
\name{getSSB}
\alias{getSSB}
\title{Calculate the SSB of species}
\usage{
getSSB(object)
}
\arguments{
\item{object}{An object of class \code{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.
}
\description{
Calculates the spawning stock biomass (SSB) through time of the species in
the \code{MizerSim} class. SSB is calculated as the total mass of all mature
individuals.
}
\examples{
ssb <- getSSB(NS_sim)
ssb[c("1972", "2010"), c("Herring", "Cod")]
}
\seealso{
Other summary functions:
\code{\link{getBiomass}()},
\code{\link{getDiet}()},
\code{\link{getGrowthCurves}()},
\code{\link{getN}()},
\code{\link{getYield}()},
\code{\link{getYieldGear}()}
}
\concept{summary functions}
\concept{summary_function}