Skip to contents

Structures a table of mean length (cm) at age into the year-season-age array used by get_data().

Usage

get_length_at_age(length_mean)

Arguments

length_mean

A data.frame containing the mean length (cm) at age. Must include columns Year, Season, and age columns 0 to 30.

Value

A numeric array with dimensions year by season by age.

Details

The input data.frame must contain the mean length (cm) at age arranged into the columns Year, Season, and ages 0 to 30:

YearSeason01...2930
193114557.1...74.188.8
193214557.1...74.188.8
.....................
202125068.9...184.0184.0
202225068.9...184.0184.0

The implementation requires exactly one complete row for each year-season combination and is specialized to seasons 1 and 2. Rows are sorted within season before the output array is filled.