makeAgeTracesRECA: Catch at age traces

View source: R/RecaReport.R

makeAgeTracesRECAR Documentation

Catch at age traces

Description

Compiles traces for age groups. That is the value for total catch at age in each iteration of eca.predict

Usage

makeAgeTracesRECA(prediction, unit = "millions", plusGroup = NULL)

Arguments

prediction

as returned by eca.predict or runRECA.

unit

unit of traced estimates. See details.

plusGroup

Fish this age or older will be grouped in one trace.

Details

The number of iterations of eca.predict is determined by the parameter 'nSamples' to eca.estimate or runRECA and the parameter 'caa.burnin' (different from parameter 'burnin') to eca.predict or runRECA

parameter 'unit' supports:

number

Catch at age as number of fish

thousands

Catch at age as number of fish in thousands

millions

Catch at age as number of fish in millions

kg

Catch at age as mass in kilogrammes

T

Catch at age as mass in tons

kT

Catch at age as mass in kilotonnes

Value

data.table() with one column for each age (or plus group), and one row for each iteration of eca.predict.

Examples

 data(recaPrediction)
 makeAgeTracesRECA(recaPrediction, plusGroup=13)

StoXProject/RstoxFDA documentation built on Nov. 12, 2024, 3:42 a.m.