Learn R Programming

RObsDat (version 16.03)

addSynonym: Add a synonym for one of the entries in any meta data table

Description

For more convenience while importing data, synonyms for existing entries can be handled by the package. This command allows you to add a synonym. Existing synonyms are then used to match the right record when searching and importing data.

Usage

addSynonym(table, phrase, id)

Arguments

table
Name of the table, in which an entry exists.
phrase
The synonym.
id
Unique ID of the record.

Value

nothing returned

Details

Do you need more? Let me know (see package maintainer).

See Also

getID, exportSynonyms

Examples

Run this code
#connect to standard database
getDefaultDB()
#add data
addSite(Code="10109000", Name="LOGAN RIVER ABOVE STATE DAM, NEAR LOGAN,UT", 
	x=-100.47, y= 45.32, LatLongDatum="WGS84", Elevation="1432", 
	VerticalDatum="NAVD88", PositionAccuracy=100, Stat="Utah")
theID <- getID(table="Site", "Logan")
addSynonym(table="Site", phrase="logan dam", id=theID)

Run the code above in your browser using DataLab