Obtain the mean weight (kg) at age for each fishery each year. This function
is used within get_data so is generally not needed directly.
Arguments
- length_mu_ysa
A numeric
arraywith dimensions \[year, season, age\] containing the mean length (cm) at age for each year and season. Can be generated usingget_length_at_age.- length_sd_a
A numeric
vectorcontaining the standard deviation of length at age. Length must equal the number of age classes.
Value
A numeric array with dimensions \[fishery, year, age\] containing mean weight (kg) at age for each fishery and year.
Examples
length_mu_ysa <- get_length_at_age(length_mean = sbt::length_mean)
weight_fya <- get_weight_at_age(length_mu_ysa = length_mu_ysa,
length_sd_a = sbt::length_sd$SD)
