Description Usage Arguments Value Note Examples
MakeALKey
creates an age-length key according
to length frequency per age. Resulting frequency converted to
proportion for application to entire length dataset.
1 |
data |
A dataframe with length and age fields (columns). |
len |
Field name in data containing numeric lengths. |
age |
Field name in data containing nummeric ages. |
lenBreaks |
How lengths are binned. See |
breakLabs |
NULL (default), currently not used. |
Age-length key (length[rows] x age[columns]) with proportion
or 0 in each cell. Return object is of class "table" with
dimnames(<ALK>)
providing Bin
and Age
list items.
In the example below, some length bins contain no aged sample.
One can adjust the "by" argument in seq
as a possible fix.
Or one needs to age fish within those length bins.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.