findCodeType: Find a Key

Description Usage Arguments Value See Also Examples

View source: R/findCodeType.R

Description

Find a lookup key corresponding to a code type.

Usage

1
findCodeType(code, date = NULL, regex = TRUE, full = FALSE)

Arguments

code

a code name, e.g. Gear Type, or DATRAS to find all DATRAS related codes.

date

restrict output to code types modified after a given date in yyyy-mm-dd format, e.g. "2010-12-01"

regex

whether to match the stock name as a regular expression.

full

whether to return a data frame with all stock list columns.

Value

A vector of keys (default) or a data frame if full is TRUE.

See Also

getCodeTypeList gets a list of code types.

icesVocab-package gives an overview of the package.

Examples

1
2
3
4
5
findCodeType("worms")

findCodeType("DATRAS", full = TRUE)

findCodeType("DATRAS", full = TRUE, date = "2010-01-01")

icesVocab documentation built on Feb. 11, 2022, 1:07 a.m.