Make an age-length key out of length-at-age data
make_alk(
laa_data,
sizecol = "length",
autobin = TRUE,
binwidth = 1,
agecol = "age",
min_age = NULL,
plus_group = NULL,
numcol = NULL,
min_age_sample_size = 5,
min_total_sample_size = min_age_sample_size * min_age_groups,
min_age_groups = 5,
warnings = TRUE
)A data.frame containing the proportions of records for each size that are at each age.
A data.frame with length-at-age data
Character string naming the column that holds size data
Logical. Should the function automatically assign length bins (default is TRUE)
Numeric. If autobin = TRUE this is the width for the
size bins
Character string naming the column that holds age data
Numeric. All ages less than this value will not be used in ALK
Numeric value of the oldest age to include in the ALK. All older individuals will be included in this plus group
Character string naming the column that holds numbers data
Only applicable to alk models. The minimum number of samples that must be in each age group in order to create an alk
Only applicable to alk models. The minimum number of samples that must be in data in order to create an alk
Only applicable to alk models. The minimum number of age groups that must be in data in order to create an alk
Logical. Display warnings (TRUE, default)