estimate_weight: Estimate CPS weight

View source: R/biological.R

estimate_weightR Documentation

Estimate CPS weight

Description

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

Usage

estimate_weight(scientificName, totalLength_mm, model.type = "GLM", season)

Arguments

scientificName

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

totalLength_mm

A vector containing total length (TL), in millimeters.

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 weight, in grams.

Examples

estimate_weight("Sardinops sagax", 300, model.type = "GLM", "summer")

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