Print a list of controlled vocabulary terms

get_cv_terms(cvtype = c("units", "variablename", "samplingfeaturetype",
  "medium", "methodtype", "actiontype", "annotationtype",
  "relationshiptype", "censorcode", "dataqualitytype", "datasettype",
  "directivetype", "elevationdatum", "equipmenttype", "organizationtype",
  "aggregationstatistic", "propertydatatype", "qualitycode", "resulttype",
  "samplingfeaturegeotype", "sitetype", "spatialoffsettype", "speciation",
  "specimentype", "status", "taxonomicclassifiertype", "unitstype",
  "variabletype"), quietly = FALSE)

Arguments

cvtype

the name of the controlled vocab eg. "resulttype" or "methodtype"

quietly

whether to print in console or not

Value

a vector of the Names column from the controlled vocab table

Details

This function returns a character vector of terms from a selected controlled vocabularly and, optionally, prints those names in the R console. Controlled vocabularies are hosted at http://vocabulary.odm2.org/ as well as pre-populated in the database template in rodm2. This function relies on the CV terms in the pre-populated ODM2 database template.

Examples

get_cv_terms("resulttype")
#> resulttype controlled vocabulary terms: "Category observation", "Count observation", "Measurement", "Point coverage", "Profile coverage", "Section coverage", "Spectra coverage", "Temporal observation", "Time series coverage", "Trajectory coverage", "Transect coverage", "Truth observation"
#> use quietly = FALSE to print out all controlled vocabulary terms
resultterms <- get_cv_terms("resulttype")
#> resulttype controlled vocabulary terms: "Category observation", "Count observation", "Measurement", "Point coverage", "Profile coverage", "Section coverage", "Spectra coverage", "Temporal observation", "Time series coverage", "Trajectory coverage", "Transect coverage", "Truth observation"
#> use quietly = FALSE to print out all controlled vocabulary terms