Learn R Programming

lhmixr (version 0.1.0)

vb_lengths: von Bertalanffy growth function.

Description

vb_lengths returns the predicted length-at-age for given named set of parameters for the von Bertalanffy growth function: $$l = L_{\infty} (1 - e^{-k(a - t_0)})$$

Usage

vb_lengths(theta, age)

Arguments

theta
A numeric vector with named values "linf", "k", "t0".
age
A numeric vector of ages.

Value

Predicted length-at-age.

Examples

Run this code
vb_lengths(theta = c("linf" = 30,"k" = 0.2,"t0" = -1), age = 0:10)

Run the code above in your browser using DataLab