Learn R Programming

icesDatras (version 1.4.1)

getCatchWgt: Get Catch Weights

Description

Calculate the total reported catch weight by species and haul.

Usage

getCatchWgt(survey, years, quarters, aphia)

Value

A data frame.

Arguments

survey

the survey acronym e.g. NS-IBTS.

years

a vector of years of the survey, e.g. c(2010, 2012) or 2005:2010.

quarters

a vector of quarters of the year the survey took place, e.g. c(1, 4) or 1:4.

aphia

a vector of Aphia species codes defined in the WoRMS database, e.g. c(126436, 1264374).

See Also

getSurveyYearList, getSurveyYearQuarterList, and getDatrasDataOverview also list available data.

icesDatras-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
getCatchWgt(survey = "ROCKALL", years = 2002, quarters = 3, aphia = 126437)

# look up specific species
aphia <- icesVocab::findAphia(c("cod", "haddock"))
cwt <- getCatchWgt(survey = "ROCKALL", years = 2002, quarters = 3, aphia = aphia)
}

Run the code above in your browser using DataLab