Convert_length_to_age_samples: Convert length-composition to age-composition data

Description Usage Arguments Value

View source: R/Convert_length_to_age_samples.R

Description

Convert_length_to_age_samples converts a matrix of length-composition data to age-composition data for use in CCSRA

Usage

1
2
Convert_length_to_age_samples(K, Linf, L0, Lcv, Lbin_mat, LengthComp_lt,
  checkforbugs = TRUE)

Arguments

K,

Brody growth coefficient

Linf,

Asymptotic maximum length

L0,

Expected length at age 0 from fitting a von Bertalanffy growth curve

Lcv,

coefficient of variation for size given expected length at age

Lbin_mat,

a matrix with two columns, where each row specifies the lower and upper length for a given length bin (the lowest should be -Inf, and highest Inf)

LengthComp_lt,

a matrix of length-composition data, where columns are samples in year t, and cells are the count of samples with a given length and year

checkforbugs,

a boolean stating whether to check for bugs or not

Value

AgeComp_at, a matrix of expected age-composition data, where columns are samples in year t, and cells are the count of samples with a given age and year


James-Thorson/CCSRA documentation built on Nov. 7, 2018, 5:19 a.m.