StationsInPoly | R Documentation |
Returns the stations located within a given shapefile, or outside if outside=TRUE.
StationsInPoly(
stations,
polygon,
outside = FALSE,
id_col,
datum_col,
lat_col,
lon_col
)
stations |
Dataframe of stations with latitude, longitude, and source datum. |
polygon |
Shapefile of the area to query |
outside |
Set to true if you want stations located outside of the polygon instead. Default is FALSE. |
id_col |
Quoted name of the station ID column |
datum_col |
Quoted name of the datum column |
lat_col |
Quoted name of the latitude column |
lon_col |
Quoted name of the longitude column |
A list of stations inside, or outside if outside=TRUE, of a given polygon.
StationsInPoly(stations = "result-of-GetStations()", polygon = "your-shapefile-here", outside=FALSE,
id_col = "MLocID", datum_col = "Datum", lat_col = "Lat_DD", lon_col = "Lon_DD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.