Learn R Programming

icesVocab (version 1.1-2)

findCodeType: Find a Key

Description

Find a lookup key corresponding to a code type.

Usage

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

Run this code
findCodeType("worms")

findCodeType("DATRAS", full = TRUE)

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

Run the code above in your browser using DataLab