make_alk {halk} | R Documentation |
Make an age-length key out of length-at-age data
Description
Make an age-length key out of length-at-age data
Usage
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
)
Arguments
laa_data |
A data.frame with length-at-age data |
sizecol |
Character string naming the column that holds size data |
autobin |
Logical. Should the function automatically assign length bins (default is TRUE) |
binwidth |
Numeric. If |
agecol |
Character string naming the column that holds age data |
min_age |
Numeric. All ages less than this value will not be used in ALK |
plus_group |
Numeric value of the oldest age to include in the ALK. All older individuals will be included in this plus group |
numcol |
Character string naming the column that holds numbers data |
min_age_sample_size |
Only applicable to alk models. The minimum number of samples that must be in each age group in order to create an alk |
min_total_sample_size |
Only applicable to alk models. The minimum number of samples that must be in data in order to create an alk |
min_age_groups |
Only applicable to alk models. The minimum number of age groups that must be in data in order to create an alk |
warnings |
Logical. Display warnings (TRUE, default) |
Value
A data.frame containing the proportions of records for each size that are at each age.
Examples
make_alk(laa_data)