get_cv_terms: Print a list of controlled vocabulary terms

Description Usage Arguments Details Value Examples

View source: R/get_cv_terms.R

Description

Print a list of controlled vocabulary terms

Usage

1
2
3
4
5
6
7
8
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

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.

Value

a vector of the Names column from the controlled vocab table

Examples

1
2
get_cv_terms("resulttype")
resultterms <- get_cv_terms("resulttype")

khondula/rodm2 documentation built on Jan. 9, 2020, 1:48 p.m.