The incoming pas object is first filtered based on the values of stateCodes, pattern, isOutside and isParent. The values associated with the "label" column are then returned.

This function is useful for returning values associated with specific devices, which are represented by records with isParent = TRUE.

pas_getLabels(
  pas = NULL,
  pattern = ".*",
  idPattern = ".*",
  isOutside = TRUE,
  isParent = TRUE
)

Arguments

pas

PurpleAir Synoptic pas object.

pattern

Text pattern used to filter station labels.

idPattern

Text pattern used to filter deviceDeploymentID.

isOutside

Logical, is the sensor located outside?

isParent

Logical, is the record associated with a the A channel?

Value

Vector of values.

See also

Examples

library(AirSensor) pas <- example_pas pas_getLabels(pas = pas) %>% head(10)
#> [1] " Hazelwood canary " #> [2] " WC Hillside" #> [3] "#ValleyClimate" #> [4] "'S' St Between Inyo and Mono" #> [5] "003 FK Parking Lot" #> [6] "005- FK Shelby Forest" #> [7] "1 5th Avenue Marina Bldg 28 @ Elev 8 Ft" #> [8] "10" #> [9] "1000 Rolling Hill Way" #> [10] "1000ft Montclair"
pas_getLabels(pas = pas, pattern = "back") %>% head(10)
#> [1] "back" "back deck" "Wolfback Ridge" #> [4] "Air monitor Weirback" "RP's back porch"