est_vbgrowth: Estimate length-at-age using the von Bertanlaffy...

View source: R/est_vbgrowth.R

est_vbgrowthR Documentation

Estimate length-at-age using the von Bertanlaffy parametization

Description

Estimate length-at-age using the von Bertanlaffy parametization

Usage

est_vbgrowth(
  data,
  dir = NULL,
  col_length = "length_cm",
  col_age = "age",
  init_params = data.frame(K = 0.13, Linf = 55, L0 = 15, CV0 = 0.1, CV1 = 0.1),
  bins = NULL
)

Arguments

data

Data frame of biological data from pull_bio()

dir

Directory where output will be saved. The directory where the file should be saved. If dir = NULL no output will be saved.

col_length

A numeric or character value specifying the column to use in data for length information. These lengths are assumed to be in centimeters. The default value is length_cm.

init_params

Data frame of starting parameters for K, Linf, L0, CV0, and CV2 based on the Stock Synthesis parameterization of von Bertanlaffy growth.

bins

The bins to put ages into. If NULL then simply uses the ages as recorded.

col_weight

A numeric or character value specifying the column to use in data for weight information. These weights are assumed to be in kilograms The default value is weight_kg.

Author(s)

Chantel Wetzel

See Also

fit_vbgrowth()


nwfsc-assess/nwfscSurvey documentation built on Nov. 12, 2024, 8:14 p.m.