get_foreign_data: Downloads all NAFO data

View source: R/get_foreign_data.R

get_foreign_dataR Documentation

Downloads all NAFO data

Description

Downloads, imports, aggregates NAFO data from 21B data base

Usage

get_foreign_data(
  filterByYear = NA,
  filterByArea = NA,
  removeUSA = T,
  aggregateCountry = T
)

Arguments

filterByYear

Numeric vector. Years for which data is required

filterByArea

Character vector. NAFO Areas for which data is required

removeUSA

Boolean. Should USA landings be removed from data set? (Default = T, remove)

aggregateCountry

Boolean. Should all catch be aggregated over country codes? (Default = T)

Value

Data frame: NAFO data

Year

Year of catch

MONTH

Month of catch

QY

Quatere year of catch. Jan-Mar = 1, ..., Oct-Dec = 4

GearCode

NAFO gear code

Tonnage

Size class of vessel

DivCode

Division code in which vessel reported catch

Code

NAFO species code of landed fish

SPPLIVMT

catch in Metric tons

Country

Reporting country - only if aggregateCounty = F

See Also

NAFO 21B website: https://www.nafo.int/Data/Catch-Statistics-STATLANT-21B

Examples

nafoData <- get_foreign_data(filterByYear = 2000)
head(nafoData)


NOAA-EDAB/comlandr documentation built on March 1, 2025, 8 p.m.