vB: vB calculates the predicted von Bertalanffy length at age

View source: R/fisheries.r

vBR Documentation

vB calculates the predicted von Bertalanffy length at age

Description

vB calculates length at age for the von Bertalanffy curve.

Usage

vB(p, ages)

Arguments

p

is a vector the first three cells of which are Linf, K, and t0 for the vB curve.

ages

is a vector of ages; could be a single number

Value

a vector of predicted lengths for the vector of ages in 'ages'

Examples

ages <- seq(0,20,1)   # sigma is ignored here
pars <- c(Linf=50,K=0.3,t0=-1.0,sigma=1.0) # Linf, K, t0, sigma
oldpar <- par(no.readonly=TRUE)
plot1(ages,vB(pars,ages),xlab="Age",ylab="Length",lwd=2)
par(oldpar)

MQMF documentation built on Sept. 8, 2023, 5:14 p.m.

Related to vB in MQMF...