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

pas_getColumn(
  pas = NULL,
  name = NULL,
  pattern = ".*",
  idPattern = ".*",
  isOutside = TRUE
)

Arguments

pas

PurpleAir Synoptic pas object.

name

Name of the column to return.

pattern

Text pattern used to filter sensor labels.

idPattern

Text pattern used to filter deviceDeploymentID.

isOutside

Logical, is the sensor located outside?

Value

Vector of values.

Examples

library(AirSensor)

example_pas %>%
  pas_getColumn(name = "latitude") %>%
  head(10)
#>  [1] 34.02391 37.10762 33.77309 33.77324 33.76236 33.76231 33.76613 33.77025
#>  [9] 33.76199 33.76539