convert_N function

Convert abundance-at-age matrix to abundance-at-length

Convert abundance-at-age matrix to abundance-at-length

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)

Returns

Returns abundance-at-length matrix.