writeTCSAM02_EffortData: Write effort data to a connection in TCSAM02 input format

View source: R/writeTCSAM02_EffortData.R

writeTCSAM02_EffortDataR Documentation

Write effort data to a connection in TCSAM02 input format

Description

Function to write effort data to a connection in TCSAM02 input format.

Usage

writeTCSAM02_EffortData(
  con = stdout(),
  dfr = NULL,
  closed = NULL,
  avgInterval = "[1992:-1]",
  likeType = c("NORM2", "NORMAL", "LOGNORMAL"),
  likeWgt = 1,
  unitsIn = c("ONES", "MILLIONS"),
  unitsOut = c("ONES", "MILLIONS")
)

Arguments

con

: connection to use (default=stdout)

dfr

: effort data dataframe to write to connection

closed

: vector of closure years (or NULL)

avgInterval

: averaging interval (e.g., "[1992:-1]")

likeType

: likelihood type ("NORM2","NORMAL",or "LOGNORMAL")

likeWgt

: likelihood weight (multiplier)

unitsIn

: input effort units ("ONES","MILLIONS")

unitsOut

: output effort units ("ONES","MILLIONS")

Details

The input values should be in ONES.

The input dataframe should have the following column names

  • year

  • effort

Value

Invisibly returns the connection con to allow piping.


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