periods | R Documentation |
Given the fraction of the year when each of the indices are observed, this function estimates the number of seasons, the fraction of the year of each season and the season when each of the indices are observed.
periods(findicesB = NULL, findicesP = NULL)
findicesB |
A named |
findicesP |
A named |
A list
with four numeric elements: nper
, with the number of seasons;
f
with the fraction of the year corresponding to each of the seasons;
perindicesB
with the season in which the index in total biomass is observed,
this object is a named vector with one element per index; and
perindicesP
with the season in which the index of proportion of recruits is observed,
this object is a named vector with one element per index.
Leire Ibaibarriaga & Sonia Sanchez.
# Load data data(ane) # Generate population estimates, given some estimated parameters per <- periods( findicesB=unlist(lapply( indicesB.ane, function(x) mean(range(x)[c('startf','endf')]))), findicesP=unlist(lapply( indicesP.ane, function(x) mean(range(x)[c('startf','endf')])))) class(per) per$nper per$f per$perindicesB per$perindicesB
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.