powered by
This function creates a hierarchically nested age-length key that can be used to estimate age of an organism based on proportion of sampled organisms in each age group.
make_halk(data, levels = NULL, age_col = "age", size_col = "length", ...)
A tibble with columns for each level and a column called alk that houses the age-length key for that particular level
tibble
A data.frame with age and size samples
Character vector specifying the levels for HALK creation
Optional. String of the column name in data housing age data
data
Optional. String of the column name in data housing size data
Additional arguments passed to make_alk
make_alk
make_halk(spp_data, levels = "spp")
Run the code above in your browser using DataLab