Obtain the mean length (cm) at age for each year and season. This function is
used within get_data
so is generally not needed directly. It simply
rearranges the input data.frame
into an array
.
Details
The input data.frame
must contain the mean length (cm) at age arranged
into the columns Year
, Season
, and ages 0 to 30:
Year | Season | 0 | 1 | ... | 29 | 30 |
1931 | 1 | 45 | 57.1 | ... | 74.1 | 88.8 |
1932 | 1 | 45 | 57.1 | ... | 74.1 | 88.8 |
... | ... | ... | ... | ... | ... | ... |
2021 | 2 | 50 | 68.9 | ... | 184.0 | 184.0 |
2022 | 2 | 50 | 68.9 | ... | 184.0 | 184.0 |
Examples
length_mu_ysa <- get_length_at_age(length_mean = sbt::length_mean)