SpB | R Documentation |
SpB - calculates the spawning biomass from a vector of numbers-at-age, Maturity-at-age, and Weight-at-age.
SpB(invect, MatureA, WeightA)
invect |
- the numbers-at-age as a vector |
MatureA |
maturity at age vector |
WeightA |
weight at age vector as kilograms |
SpB - a scalar as tonnes.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.