View source: R/calcIndices_fun.R
| calcIndices | R Documentation |
This function estimates fitted indices, given information on growth, periods duration, catches and estimated parameters.
calcIndices(g, findicesB, findicesP, catch, inits)
g |
A |
findicesB |
A |
findicesP |
A |
catch |
An |
inits |
An |
A list with information on estimated indices (FLQuants).
The list has 2 elements: indicesB (for indices in biomass) and indicesP (for proportions of recruits in biomass).
Methods exist for various calculations based on the output class (FLPar). For details: ?FLPar.
Leire Ibaibarriaga & Sonia Sanchez.
FLPar, bbmFLPar, bbmControl
# Load data
data(ane)
args(calcIndices)
indices <- calcIndices( g=control.ane@g,
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')]))),
catch=catch.ane, inits=inits.ane )
class(indices)
slotNames(indices)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.