SpB: SpB - calculate spawning biomass from a vector of...

View source: R/aspm.r

SpBR Documentation

SpB - calculate spawning biomass from a vector of numbers-at-age

Description

SpB - calculates the spawning biomass from a vector of numbers-at-age, Maturity-at-age, and Weight-at-age.

Usage

SpB(invect, MatureA, WeightA)

Arguments

invect

- the numbers-at-age as a vector

MatureA

maturity at age vector

WeightA

weight at age vector as kilograms

Value

SpB - a scalar as tonnes.

Examples

## Not run: 
data(fishdat)
str(fishdat)
glb <- fishdat$glb
fish <- fishdat$fish
props <- fishdat$props
unfish <- unfished(glb,props,glb$R0)
N0 <- unfish$N0
SpB(N0,props$maa,props$waa)  # should be 18326.52
unfish$B0

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.