datrasraw2weightfreq: Convert a DATRASraw object to weight frequency data.frame

View source: R/datras.R

datrasraw2weightfreqR Documentation

Convert a DATRASraw object to weight frequency data.frame

Description

The length information of a DATRASraw object is transformed to weight and the weight frequency is returned as data.frame

Usage

datrasraw2weightfreq(datr, a = 0.01, b = 3, estWL = FALSE,
  verbose = TRUE)

Arguments

datr

DATRASraw object

a

numeric weight-length relationship, parameter a, see Details

b

numeric, weight-length relationship, parameter b, see Details

estWL

logical, if TRUE and available information about weight is available, the weight-length relationship is fitted

verbose

logical, if TRUE it shows information about the fitted weight length parameters and the output data.frame

Details

The weight-length relationship has the form $W = aL^b$

Value

data.frame with columns Weight, Freq containing the weight frequencies of the input data

Author(s)

alko


alko989/s6model documentation built on Nov. 2, 2023, 10:04 p.m.