Description Usage Arguments Value See Also Examples
A generalized data filter for pas objects to choose rows/cases where conditions are true. Rows where the condition evaluates to NA are dropped.
| 1 | pas_filter(pas, ...)
 | 
| pas | PurpleAir Synoptic pas object. | 
| ... | Logical predicates defined in terms of the variables in the 
 | 
A subset of the given pas object.
pas_filterArea, pas_filterNear
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(AirSensor)
nrow(example_pas)
# California
ca <- pas_filter(example_pas, stateCode == "CA")
nrow(ca)
# Seal Beach
scsb <- 
  ca %>%
  pas_filter(stringr::str_detect(label, "^SCSB_"))
nrow(scsb)
if ( interactive() ) {
  pas_leaflet(ca)
  pas_leaflet(scsb, maptype = "satellite")
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.