getCatchWgt: Get Catch Weights

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/getCatchWgt.R

Description

Get the reported catch weight by species and haul.

Usage

1
getCatchWgt(survey, years, quarters, aphia)

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).

Value

A data frame.

Note

The icesAdvice package provides findAphia, a function to look up Aphia species codes.

Author(s)

Colin Millar.

See Also

getSurveyYearList, getSurveyYearQuarterList, and getDatrasDataOverview also list available data.

icesDatras-package gives an overview of the package.

Examples

1
2
3
4
5
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)

icesDatras documentation built on May 29, 2017, 11:54 a.m.