Learn R Programming

RObsDat (version 16.03)

addSite: Add detail information about the observation site

Description

Information about the spatial location at which data values have been collected.

Usage

addSite(Code, Name, x, y, Elevation = rep(0, length(Code)), LatLongDatum, LocalProjection = NULL, isLocal = NULL, VerticalDatum = NULL, PositionAccuracy = rep(0, length(Code)), State = NULL, County = NULL, Comment = NULL)

Arguments

Code
Code used by organization that collects the data to identify the site
Name
Full name of the sampling site.
x
x coordinate
y
y coordinate
Elevation
Elevation of sampling location (in m).
LatLongDatum
Spatial Reference System of the latitude and longitude coordinates
LocalProjection
Spatial Reference System of the local coordinates
isLocal
Boolean, indicating if x and y are in the lat/long or local coordinate system.
VerticalDatum
Vertical datum of the elevation.
PositionAccuracy
Value giving the accuracy with which the positional information is specified in meters.
State
Name of state in which the monitoring site is located.
County
Name of county in which the monitoring site is located.
Comment
Additional comments for the location.

Value

Nothing is returned.

See Also

Use getMetadata to retrieve values.

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")

getMetadata(table="Site", Name="LOGAN")

Run the code above in your browser using DataLab