powered by
Look up a key for a given code and code type.
findCode(code_type, code, regex = TRUE, full = FALSE)
A vector of keys (default) or a data frame if full is TRUE.
a search string for a code type, e.g. SpecWoRMS, or simply worms.
a search string for a code, e.g. a species name, cod, or ship name, Clupea.
whether to match as a regular expression.
whether to return a data frame.
Matches are case-insensitive.
getCodeList can be used to get all code types; see example on that help page.
getCodeList
icesVocab-package gives an overview of the package.
icesVocab-package
if (FALSE) { findCode("aphia", "cod") # Multiple matches findCode("aphia", c("cod", "haddock", "saithe"), full = TRUE) findCodeType("ship", full = TRUE) findCode("ship", "clupea", full = TRUE) }
Run the code above in your browser using DataLab