Skip to contents

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.

Usage

get_weight_at_age(length_mu_ysa, length_sd_a)

Arguments

length_mu_ysa

A numeric array with dimensions \[year, season, age\] containing the mean length (cm) at age for each year and season. Can be generated using get_length_at_age.

length_sd_a

A numeric vector containing 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)