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
6
7
8
## Not run: 
findCodeType("worms")

findCodeType("DATRAS", full = TRUE)

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

## End(Not run)

icesVocab documentation built on May 2, 2019, 6:13 a.m.