estimate_length: Estimate CPS length

View source: R/biological.R

estimate_lengthR Documentation

Estimate CPS length

Description

Calculate the estimated length of CPS species from a known weight measurement, using the mass-length relationship models presented in Palance et al. 2019.

Usage

estimate_length(scientificName, weightg, model.type = "GLM", season)

Arguments

scientificName

A vector containing the species' scientific name (Clupea pallasii, Engraulis mordax, Sardinops sagax, Scomber japonicus, or Trachurus symmetricus).

weightg

A vector containing specimen weight, in grams.

model.type

The model used to estimate weight, either OLS (Ordinary Least Squares) or GLM (Generalized Linear Model).

season

The season in which the specimen was collected, either spring or summer.

Value

Specimen total length (TL), in millimeters.

Examples

estimate_length("Sardinops sagax", 5, model.type = "GLM", "summer")

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