convert_length: Convert CPS length

View source: R/biological.R

convert_lengthR Documentation

Convert CPS length

Description

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.

Usage

convert_length(scientificName, L.in, from, to)

Arguments

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.

Value

The converted length (unitless).

Examples

convert_length("Sardinops sagax", L.in = 20, from = "SL", to = "TL")

kstierhoff/atm documentation built on Jan. 30, 2025, 11:21 p.m.