saveCatchMatrix: Save catch at age matrix

Description Usage Arguments Details

Description

Write catch at age predicted by eca.predict as csv file.

Usage

1
2
saveCatchMatrix(pred, filename, var = "Abundance", unit = "ones",
  main = "", savemeans = F)

Arguments

pred

as returned by eca.predict

filename

name of file to save to.

var

Variable to extract. Allows for Abundance, Count or Weight

unit

Unit for extracted variable. See getPlottingUnit

main

Title for the analysis, to be included as comment in saved file (e.g. species and year)

savemeans

If True, only means for each age group will be saved, otherwise extracted variable is saved for each iteration of the Monte Carlo simulation.

Details

Catch at age matrix is written as comma-separated file with quoted strings as row/column names. Each row correspond to an age group, and columns to either means or an iteration of the Monte Carlo simulation. Units are controlled by parameters, and written as metainformation in a preamble identified by the comment charater '#', along with any text provided in other arguments (parameter main).


Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.