Learn R Programming

AirSensor (version 1.0.2)

pas_getColumn: Return column of data from filtered PurpleAir Synoptic objects

Description

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

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

Usage

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

isParent

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

Value

Vector of values.

See Also

pas_getIDs, pas_getLabels

Examples

Run this code
# NOT RUN {
library(AirSensor)

example_pas %>%
  pas_getColumn(name = "latitude") %>%
  head(10)
  
# }

Run the code above in your browser using DataLab