pas_pull: Returns a column of data from a PurpleAir synoptic object

View source: R/pas_pull.R

pas_pullR Documentation

Returns a column of data from a PurpleAir synoptic object

Description

A simple wrapper around dplyr::pull() to help with readability of user recipes.

Usage

pas_pull(pas, name = NULL)

Arguments

pas

PurpleAir Synoptic pas object.

name

Name of the data column to return.

Value

A single column of data from the incoming pas object.

Examples

library(AirSensor2)

# Lane (County) Regional Air Protection Agency
LRAPA_sensor_indices <-
  example_pas_pm25 %>%
  pas_filter(stringr::str_detect(name, "Ambassador")) %>%
  pas_pull("sensor_index")

print(LRAPA_sensor_indices)

MazamaScience/AirSensor2 documentation built on Oct. 31, 2024, 1:39 a.m.