linkCodes {icesVocab} | R Documentation |
Get Links Between Two Code Types
Description
Find parent or child linkages between the codes of two code types.
Usage
linkCodes(code_type, linked_code_type, codes = NULL, ...)
Arguments
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. |
Value
A data frame.
Author(s)
Colin Millar.
See Also
icesVocab-package
gives an overview of the package.
Examples
## 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)
[Package icesVocab version 1.3.2 Index]