addSite: Add detail information about the observation site

Description Usage Arguments Value Author(s) See Also Examples

View source: R/addSite.R

Description

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

Usage

1
2
3
4
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.

Author(s)

Dominik Reusser

See Also

Use getMetadata to retrieve values.

Examples

1
2
3
4
5
6
7
8
9
#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")

RObsDat documentation built on May 31, 2017, 4:20 a.m.