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

View source: R/utilities.R

lengthToMassR Documentation

Convert a vector of body lengths to a vector of body masses using length-weight relationship

Description

Convert a vector of body lengths to a vector of body masses using the formula mass = LWa * lengths^LWb. LWa and LWb will be species-specific. User must ensure that units are consistent.

Usage

lengthToMass(lengths, LWa, LWb)

Arguments

lengths

vector of lengths

LWa

multiplicative coefficient in equation

LWb

exponent in equation

Value

vector of body masses

Author(s)

Andrew Edwards


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