writeTCSAM02_CatchData: Write catch data type (retained catch, total catch, discard...

View source: R/writeTCSAM02_CatchData.R

writeTCSAM02_CatchDataR Documentation

Write catch data type (retained catch, total catch, discard catch, index catch) to a connection

Description

Function to write catcht data type (retained catch, total catch, discard catch, index catch) to a connection.

Usage

writeTCSAM02_CatchData(
  con = stdout(),
  type = c("RETAINED", "TOTAL", "DISCARD", "INDEX"),
  closed = NULL,
  lstAbd = inputList_AggregateCatchData("ABUNDANCE"),
  lstBio = inputList_AggregateCatchData("BIOMASS"),
  lstZCs = inputList_SizeCompsData()
)

Arguments

con

: connection (default = stdout())

type

: data type ("RETAINED","TOTAL","DISCARD" or "INDEX")

closed

: vector of years when fishery was closed (if fleet is a fishery)

lstAbd

: list with abundance data information (see inputList_AggregateCatchData)

lstBio

: list with biomass data information (see inputList_AggregateCatchData)

lstZCs

: list with size comps data information (see inputList_SizeCompsData)

Details

See inputList_AggregateCatchData for list structure of lstAbd and lstBio. See inputList_SizeCompsData for list structure of lstZCs

Value

Invisibly returns the connection to facilitate piping.


wStockhausen/tcsamFunctions documentation built on Jan. 28, 2024, 9:01 a.m.