importCatch.jon: Import catch csv file made by Jonathan Carey.

Description Usage Arguments Value

Description

Import catch csv file made by Jonathan Carey.

Usage

1
2
3
importCatch.jon(filename, startingyear = 1, finalyear = 9999,
  calibration.name.new = "new", calibration.name.old = "old",
  commonstocks = FALSE, fishery.names.exclude = NA)

Arguments

filename

A character. The name of the csv file for import.

startingyear

An integer. The default is 1, which means the series will start with the ealiest year.

finalyear

An integer. The default is 9999, which means the series will end with the most recent year.

calibration.name.new

A character. The default name is "new".

calibration.name.old

A character. The default name is "old".

commonstocks

A logical. The default is FALSE.

fishery.names.exclude

A character vector of fishery names to be excluded from the data.

Value

A list of three data frames. The data frame named data.combined comprises the fishery specific catches, reshaped to long format. The data frame named total is the recalculated totals after exclusion of named fisheries. The data frame data.original is the unmodified initial import.


MichaelFolkes/ctctools documentation built on May 7, 2019, 4:56 p.m.