Convert length frequencies to age frequencies by slicing using cohort-based age-length relationships.
Arguments
- data
A
listcontaining model data passed toMakeADFun. Must include:n_lf(integer, number of length frequency observations),n_age(integer, number of age classes),age_a(numeric vector of age classes),lf_year(integer vector of years),lf_season(integer vector of seasons), andlength_mu_ysa(3D array of mean length-at-age by year, season, and age).- lf_data
A
data.framecontaining length frequency data. Must include columns forFishery,Year,N, and additional columns representing length bins with numeric column names.
