alk | R Documentation |
Creates an age-length key in numbers or proportions-at-age per size.
alk(age=NULL,size=NULL,binsize=NULL,type=1)
age |
a vector of individual age data. |
size |
a vector of individual size data. |
binsize |
size of the length class (e.g., 5-cm, 10, cm, etc.) used to group size data.
The formula used to create bins is |
type |
If |
Create age-length keys with either numbers-at-age per size class. Records with missing size values are deleted prior to calculation. Missing ages are allowed.
A table of size, total numbers at size, and numbers (or proportions)-at-age per size class.
Gary A. Nelson, Massachusetts Division of Marine Fisheries gary.nelson@mass.gov
Quinn, T. J. and R. B. Deriso. 1999. Quantitative Fish Dynamics. Oxford University Press, New York, New York. 542 pages
alkD
alkss
alkprop
## Not run:
data(pinfish)
with(pinfish,alk(age=round(age,0),size=sl,binsize=10))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.