ExB | R Documentation |
ExB calculates the spawning biomass from a vector of numbers-at-age, selectivity-at-age, and Weight-at-age.
ExB(invect, SelA, WeightA)
invect |
the numbers-at-age as a vector |
SelA |
selectivity-at-age vector |
WeightA |
weight-at-age vector as kilograms |
ExB 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)
N1 <- unfish$N0 * exp(-glb$M/2) # no growth
ExB(N1,props$sela,props$waa) # should be 17999.6
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.