AgeToLengthComp: Age-converted-to-length structure for compositional data

Description Usage Arguments Value Author(s)

View source: R/AgeToLengthComp.R

Description

AgeToLengthComp Converts vulnerable numbers at age to length composition of catch

Usage

1
AgeToLengthComp(lh, S_a, tyears, N_at, comp_sample, sample_type = "catch")

Arguments

lh

list of life history attributes, output of create_lh_list

S_a

flexiblity to set selectivity-at-age by fleet

tyears

number of years of data

N_at

matrix of numbers in the population at each age over time

comp_sample

vector of number of individuals sampled each year (set as 1 for proportions)

sample_type

a character vector specifying if the length comps are sampled from the 'catch' (default) or from the population

Value

data frame - number of individuals in each length bin in each year

Author(s)

M.B. Rudd


merrillrudd/LIME documentation built on June 20, 2020, 2:58 p.m.