convert_length | R Documentation |
Converts between various length measures (total length (TL), standard length (SL), and fork length (FL)) for CPS species,
using the major-axis regression models presented in Palance et al. 2019. Not all conversions are possible. In such cases, NA
is returned.
convert_length(scientificName, L.in, from, to)
scientificName |
A vector containing the species' scientific name (Clupea pallasii, Engraulis mordax, Sardinops sagax, Scomber japonicus, or Trachurus symmetricus). |
L.in |
The length measurement to be converted (unitless) . |
from |
The measurement type from which length is converted. |
to |
The measurement type to which length is converted. |
The converted length (unitless).
convert_length("Sardinops sagax", L.in = 20, from = "SL", to = "TL")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.