pas_getLabels: Return labels from filtered PurpleAir Synoptic objects

View source: R/pas_getLabels.R

pas_getLabelsR Documentation

Return labels from filtered PurpleAir Synoptic objects

Description

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.

Usage

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.

See Also

pas_getColumn, pas_getIDs, pas_getDeviceDeploymentIDs

Examples

library(AirSensor)

pas <- example_pas

pas_getLabels(pas = pas) %>% head(10)

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



MazamaScience/AirSensor documentation built on April 28, 2023, 11:16 a.m.