linkCodes | R Documentation |
Find parent or child linkages between the codes of two code types.
linkCodes(code_type, linked_code_type, codes = NULL, ...)
code_type |
an ICES Vocabulary code type. |
linked_code_type |
another ICES Vocabulary code type. |
codes |
a vector of codes to restrict the output to. |
... |
for back compatibility. |
A data frame.
Colin Millar.
icesVocab-package
gives an overview of the package.
## Not run:
x <- linkCodes("Pargroup", "PARAM")
# note it is much faster to use:
# getCodeTypeRelation("Pargroup", "PARAM")
# when getting a full lookup table.
# get all areas for cod.27.1-2
linkCodes("ICES_StockCode", "ICES_Area", codes = c("cod.27.1-2"))
# get areas for cod.27.21, cod.27.24-32 and cod.27.46a7d20
linkCodes("ICES_StockCode", "ICES_Area", codes = c("cod.27.21", "cod.27.24-32", "cod.27.46a7d20"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.