pat_filter: General purpose data filtering for PurpleAir Timeseries...

Description Usage Arguments Value See Also Examples

View source: R/pat_filter.R

Description

A generalized data filter for pat objects to choose rows/cases where conditions are true. Multiple conditions are combined with & or separated by a comma. Only rows where the condition evaluates to TRUE are kept.Rows where the condition evaluates to NA are dropped.

Usage

1

Arguments

pat

PurpleAir Timeseries pat object.

...

Logical predicates defined in terms of the variables in the pat$data.

Value

A subset of the incoming pat.

See Also

pat_filterDate

pat_filterDatetime

Examples

1
2
3
4
library(AirSensor)

unhealthy <- pat_filter(example_pat, pm25_A > 55.5, pm25_B > 55.5)
head(unhealthy$data)

AirSensor documentation built on March 13, 2021, 1:07 a.m.