Learn R Programming

ALKr (version 0.5.3.1)

calc_ALK: Classic ALK

Description

Returns an Age-Length Key calculated from a matrix with the count of individuals per age- and length-class, as described by Fridriksson (1934).

Usage

calc_ALK(x)

Arguments

x
A matrix with i lines and j columns, where x[i, j] is the count of individuals of length i and age j.

Value

A matrix with the probability of an individual of length i having age j, i.e. $P(j|i)$.

References

Fridriksson, A (1934). On the calculation of age-distribution within a stock of cod by means of relatively few age determinations as a key to measurements on a large scale. Rapp. P.-V. CIEM, 86, 1-5.

Examples

Run this code
data(hom)
calc_ALK(hom$otoliths[[1]])

Run the code above in your browser using DataLab