Learn R Programming

metScanR (version 1.2.3)

getNearby: Filter environmental monitoring stations by POI

Description

Return metadata of environmental monitoring stations nearby a specific environmental station (see siteID) or near a a Latitude/Longitude pair (see lat,lon).

Usage

getNearby(siteID, lat, lon, radius, ...)

Arguments

siteID

(character) in the form of: [NETWORK]:[ID]. Environmental monitoring network to use as your Point of Interest (POI). Required if lat & lon are missing.

lat

(numeric) Latitude of (POI). lat and lon are required if siteID is missing.

lon

(numeric) Longitude of POI. lat and lon are required if siteID is missing.

radius

(numeric) Search radius outward from POI for finding environmental monitoring stations. Defined in kilometers (km); Required

...

auto-populates when called from siteFinder() wrapper

Value

A list comprising metadata of environmental monitoring stations located within radius from the user-entered siteID or Lat/Lon POI.

See Also

siteFinder mapResults metScanR_DB

Examples

Run this code
# NOT RUN {
#returns metadata from all sites within 50 km of NEON site 'CPER'
  getNearby(siteID="NEON:CPER", radius=50)
#return metadata of sites within 10 km of Lat=41.7821 & Lon = -71.4204 (Cranston, RI, USA)
  getNearby(lat=41.7821, lon = -71.4204, radius=40)
# }

Run the code above in your browser using DataLab