Function for converting abundance-at-age matrix to abundance-at-length given a length-age-key. Expects matrices to be named.

convert_N(N_at_age = NULL, lak = NULL)

Arguments

N_at_age

Abundance-at-age matrix

lak

Length-age-key (i.e. probability of being in a specific length group given age)

Value

Returns abundance-at-length matrix.