massToLength: Convert a vector of body masses to a vector of body lengths...

View source: R/utilities.R

massToLengthR Documentation

Convert a vector of body masses to a vector of body lengths using length-weight relationship (for simulations)

Description

Convert a vector of body masses to a vector of body lengths using the formula length = (mass / LWa)^(1/b), which is the inverse of the standard mass = LWa * lengths^LWb. LWa and LWb will be species-specific. User must ensure that units are consistent.

Usage

massToLength(masses, LWa, LWb)

Arguments

masses

vector of masses

LWa

multiplicative coefficient in equation

LWb

exponent in equation

Value

vector of body lengths

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.