getCatchWgt | R Documentation |
Calculate the total reported catch weight by species and haul.
getCatchWgt(survey, years, quarters, aphia)
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). |
A data frame.
The icesVocab package provides findAphia
, a function to look up Aphia species codes.
getSurveyYearList
, getSurveyYearQuarterList
, and
getDatrasDataOverview
also list available data.
icesDatras-package
gives an overview of the package.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.