Learn R Programming

icesVocab (version 1.3.1)

getCodeTypeList: Get Types

Description

Get all code types. Mainly useful as a reminder of what code types are available.

Usage

getCodeTypeList(code_type = NULL, date = NULL)

Value

A data frame.

Arguments

code_type

optional parameter to restrict output to a specific code type.

date

restrict output to code types modified after a given date in yyyy-mm-dd format, e.g. "2010-12-01"

See Also

getCodeList and getCodeDetail get codes of a given type and code details.

findCodeType searches for a code types based on a search string.

icesVocab-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
# Find code type for World Register of Marine Species (WoRMS)
types <- getCodeTypeList()
types[grep("worms", tolower(types$Description)),]

# The code type "SpecWoRMS" can be used when calling getCodeTypeList()
getCodeTypeList(code_type = "SpecWoRMS")
# or using the guid
getCodeTypeList(code_type = "f107b677-97ff-4cd9-b4ab-637bb6706066")

findCodeType("worms", full = TRUE)

}

Run the code above in your browser using DataLab