getCatchWgt {icesDatras} | R Documentation |
Get Catch Weights
Description
Calculate the total reported catch weight by species and haul.
Usage
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 icesVocab package provides findAphia
, a function to look up Aphia species codes.
See Also
getSurveyYearList
, getSurveyYearQuarterList
, and
getDatrasDataOverview
also list available data.
icesDatras-package
gives an overview of the package.
Examples
## Not run:
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)
## End(Not run)
[Package icesDatras version 1.4.1 Index]