Converts an abundance-at-age matrix to an abundance-at-length matrix using a length-age key. Both input matrices must be named appropriately.

convert_N(N_at_age = NULL, lak = NULL)

Arguments

N_at_age

A matrix of abundance-at-age values.

lak

A length-age key matrix — i.e., the probability of being in a specific length group given age.

Value

A matrix of abundance-at-length values.