Learn R Programming

icesVocab (version 1.3.1)

linkCodes: 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, ...)

Value

A data frame.

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.

Author

Colin Millar.

See Also

icesVocab-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
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"))
}

Run the code above in your browser using DataLab