get_species_data: Pull species data from cfdbs

View source: R/get_species_data.r

get_species_dataR Documentation

Pull species data from cfdbs

Description

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

Usage

get_species_data(
  species_itis = NULL,
  stock = NULL,
  outPath = here::here(),
  fileName = NULL
)

Arguments

species_itis

Numeric. Itis code for species (Default = NA, Returns a NA object for user to define)

stock

Character string. Define the stock associated with species of interest. eg. for winter flounder stock = "GB" or "SNEMA". For black sea bass, "North" or "South"

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


NOAA-EDAB/neusCatch documentation built on Oct. 17, 2023, 7:07 a.m.