View source: R/getCodeTypeRelation.R
getCodeTypeRelation | R Documentation |
Get details for a given code.
getCodeTypeRelation(code_type, linked_code_type, rename = TRUE)
code_type |
an ICES Vocabulary code type. |
linked_code_type |
another ICES Vocabulary code type. |
rename |
logical, if TRUE (default) the columns of the output is renamed to the code type and linked code type |
A data frame.
getCodeTypeList
and getCodeList
get code types
and codes of a given type.
icesVocab-package
gives an overview of the package.
## Not run:
x <- getCodeTypeRelation("Pargroup", "PARAM")
# get all stocks in subarea 4a
# note you would need to cross check with icesSD for
# currently active stocks
lookup <- getCodeTypeRelation("ICES_Area", "ICES_StockCode")
lookup[lookup$ICES_Area == "27.4.a", ]
# get relation between stock code and area, unformatted output
lookup_raw <- getCodeTypeRelation("ICES_StockCode", "ICES_Area", rename = FALSE)
head(lookup_raw)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.