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

pas_getLabels(pas = NULL, pattern = ".*", idPattern = ".*", isOutside = 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?

Value

Vector of values.

Examples

library(AirSensor)

pas <- example_pas

pas_getLabels(pas = pas) %>% head(10)
#>  [1] "SCUV_09" "SCSB_02" "SCSB_13" "SCSB_11" "SCSB_03" "SCSB_07" "SCSB_05"
#>  [8] "SCSB_31" "SCSB_26" "SCSB_17"

pas_getLabels(pas = pas, pattern = "back") %>% head(10)
#> character(0)