findCodeType: Find a Key

View source: R/findCodeType.R

findCodeTypeR Documentation

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


findCodeType("worms")

findCodeType("DATRAS", full = TRUE)

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


ices-tools-prod/icesVocab documentation built on Jan. 11, 2024, 1:08 a.m.