Pulls data from cfdbs via [comlandr] Palmer method applied to assign missing attributes (NEGEAR, QTR, AREA) to landings records

get_species_data(
  channel,
  speciesRules = NULL,
  year = "all",
  outPath = here::here(),
  fileName = NULL
)

Arguments

channel

an Object inherited from DBIConnection-class. This object is used to communicate with the database engine. (see connect_to_database)

speciesRules

List. Containing species specific rules. Default = NULL (Fully automated). Note: Predefined speciesRules will be bundled with the package for select species

year

Numeric vector. Containing the years to search over. Default = "all"

outPath

Character string. Path to directory where data will be saved

fileName

character string. File name of data to be saved

Value

List. Data is also written to disk.

landins

Data frame containing landings data by YEAR, QTR, NEGEAR, MARKET_CODE

lengths

Data frame containing fish lengths by YEAR, QTR, NEGEAR, MARKET_CODE