addCV: Extend controlled vocabularies

Description Usage Arguments Value Author(s) See Also Examples

View source: R/addCV.R

Description

Add a term to one of the controlled vocabularies. The better way is to have CUAHSI add the term to the official vocabulary through their web-page: http://his.cuahsi.org/mastercvreg/

updateCV queries the official vocabulary again and updates the database tables.

CVtables returns a list of controlled vocabularies.

Usage

1
2
3
addCV(table, term, definition)
updateCV()
CVtables()

Arguments

table

Character: Name of the controlled vocabulary. Use CVtables for a list of tables.

term

Character: Term to be added.

definition

Character: Definition of the term

Value

Nothing returned

Author(s)

Dominik Reusser

See Also

getMetadata allows to query for meta data.

Examples

1
2
3
4
5
6
7
#connect to standard database
getDefaultDB()
#add data
## Not run:  updateCV() 
addCV("VariableName", "test", "Test entry to check the possibility to add a term to a vocabulary.")

getMetadata("VariableName", Term="test")

RObsDat documentation built on May 29, 2017, 12:07 p.m.