Description Usage Arguments Value See Also Examples
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.
1 | pat_filter(pat, ...)
|
pat |
PurpleAir Timeseries pat object. |
... |
Logical predicates defined in terms of the variables in the
|
A subset of the incoming pat
.
pat_filterDate
pat_filterDatetime
1 2 3 4 | library(AirSensor)
unhealthy <- pat_filter(example_pat, pm25_A > 55.5, pm25_B > 55.5)
head(unhealthy$data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.