| l2w {mizer} | R Documentation |
Length-weight conversion
Description
Convert between length and weight using the relationship
w = a l^b
where a and b are taken from the species parameter data frame.
Usage
l2w(l, params)
w2l(w, params)
Arguments
l |
Lengths in cm. Either a single number or a vector with one number for each species. |
params |
A species parameter data frame or a MizerParams object. |
w |
Weights in grams. Either a single number or a vector with one number for each species. |
Details
This is useful for converting a length-based species parameter to a weight-based species parameter.
If any a or b parameters are missing the default values a = 0.01 and
b = 3 are used for the missing values.
Value
A vector with one entry for each species. l2w() returns a vector
of weights in grams and w2l() returns a vector of lengths in cm.
[Package mizer version 2.5.1 Index]