Learn R Programming

rnpn (version 1.2.9.0)

npn_stations_by_location: Get station data based on a WKT defined geography.

Description

Takes a Well-Known Text based geography as input and returns data for all stations, including unique IDs, within that boundary.

Usage

npn_stations_by_location(wkt, ...)

Value

A data frame listing stations filtered based on the WKT geography.

Arguments

wkt

Required field specifying the WKT geography to use.

...

Curl options passed on to GET

Examples

Run this code
if (FALSE) {
head( npn_stations_by_state(wkt="POLYGON((
-110.94484396954107 32.23623109416672,-110.96166678448247 32.23594069208043,
-110.95960684795904 32.21328646993733,-110.94244071026372 32.21343170728929,
-110.93935080547857 32.23216538049456,-110.94484396954107 32.23623109416672))")
)
}

Run the code above in your browser using DataLab