View source: R/writeInputFile_FleetData.R
writeInputFile_FleetData | R Documentation |
Function to write fleet data to a TCSAM input file.
writeInputFile_FleetData(
con = stdout(),
fleet = NULL,
type = c("FISHERY", "SURVEY"),
closed = NULL,
lstRC = NULL,
lstTC = NULL,
lstDC = NULL,
lstIC = NULL,
lstEff = NULL
)
con |
: connection to write to |
fleet |
: TCSAM fleet name |
type |
: fleet type ('FISHERY' or 'SURVEY') |
closed |
: vector of years when fishery was closed, if fleet is a fishery |
lstRC |
: list with retained catch information (see Details) |
lstTC |
: list with total catch information (see Details) |
lstDC |
: list with discard catch information (see Details) |
lstIC |
: list with index catch information (see Details) |
lstEff |
: list with effort data information |
Writes fleet-specific data file in TCSAM02 format.
The input lists lstRC
, lstTC
, lstDC
, and lstIC
must have the following structure, if not NULL:
lstAbd - NULL, or the lstAbd
input to writeTCSAM02_CatchData()
(see inputList_AggregateCatchData()
)
lstBio - NULL, or the lstAbd
input to writeTCSAM02_CatchData() (see inputList_AggregateCatchData()
)
lstZCs - NULL, or the lstAbd
input to writeTCSAM02_CatchData()
(see inputList_SizeCompsData()
)
lstEff
contains input values passed to writeTCSAM02_EffortData()
and must have
the following structure (inputList_EffortData()
), if not NULL:
dfr - dataframe with columns 'year' and 'effort'
avgInterval - averaging interval given in TCSAM02 time block format
likeType - likelihood type
likeWgt - likelihood weight
unitsIn - units for input effort
unitsOut - units for output effort
Invisibly returns the connection to facilitate piping.
inputList_AggregateCatchData()
, inputList_SizeCompsData()
, inputList_EffortData()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.