Learn R Programming

RObsDat (version 16.03)

addCV: Extend controlled vocabularies

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

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

See Also

getMetadata allows to query for meta data.

Examples

Run this code
#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")

Run the code above in your browser using DataLab