findCode | R Documentation |
Look up a key for a given code and code type.
findCode(code_type, code, regex = TRUE, full = FALSE)
code_type |
a search string for a code type, e.g. SpecWorms, or simply worms. |
code |
a search string for a code, e.g. a species name, cod, or ship name, Clupea. |
regex |
whether to match as a regular expression. |
full |
whether to return a data frame. |
Matches are case-insensitive.
A vector of keys (default) or a data frame if full is TRUE.
getCodeList
can be used to get all code types; see example on
that help page.
icesVocab-package
gives an overview of the package.
findCode("aphia", "cod")
# Multiple matches
findCode("aphia", c("cod", "haddock", "saithe"), full = TRUE)
findCodeType("ship", full = TRUE)
findCode("ship", "clupea", full = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.