Description Usage Arguments Value See Also Examples
View source: R/pas_filterArea.R
Filters pas object sensors based on a bounding box.
1 |
pas |
PurpleAir Synoptic pas object. |
w |
West edge of area bounding box (deg E). |
e |
East edge of area bounding box (deg E). |
s |
South edge of area bounding box (deg N). |
n |
North edge of area bounding box (deg N). |
A subset of the given pas object.
pas_filter, pas_filterNear
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(AirSensor)
pas <- example_pas
range(pas$longitude)
range(pas$latitude)
scsb <-
pas %>%
pas_filterArea(
w = -118.10,
e = -118.07,
s = 33.75,
n = 33.78
)
range(scsb$longitude)
range(scsb$latitude)
if ( interactive() ) {
pas_leaflet(scsb)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.