Skip to contents

Calculate stratum-level age composition and mean/std.dev length at age

Usage

calc_agecomp_stratum(racebase_tables = NULL, alk = NULL, size_comp = NULL)

Arguments

racebase_tables

data object created from gapindex::get_data()

alk

age-length key (dataframe) created from gapindex::calc_alk()

size_comp

a dataframe of size compositions created from gapindex::calc_sizecomp_stratum().

Value

A named list with two elements. "age_comp" is a dataframe of numbers at age by survey, year, stratum, species, and sex. A table of column name descriptions is coming soon."length_at_age" is a support table for the gapindex::calc_agecomp_region() function and should not be used.