View source: R/datalow_utils.r
vB | R Documentation |
vB calculates length at age for the von Bertalanffy curve.
vB(par, ages)
par |
is a vector the first three cells of which are Linf, K, and t0 for the VB curve; the fourth parameter will be sigma, the standard deviation of the normal likelihoods used with the residuals |
ages |
is a vector of ages |
a vector of predicted lengths for the vector of ages in 'ages'
ages <- seq(0,20,1)
pars <- c(Linf=50,K=0.3,t0=-1.0,sigma=1.0) # Linf, K, t0, sigma
cbind(ages,vB(pars,ages))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.