Description Usage Arguments Value Note See Also Examples
View source: R/sensor_filterMeta.R
A generalized data filter for sensor objects to
choose rows/cases where conditions are true. Multiple conditions are
combined with &
or seperated by a comma. Only rows where the condition
evaluates to TRUE are kept.Rows where the condition evaluates to NA
are dropped.
1 | sensor_filterMeta(sensor = NULL, ...)
|
sensor |
An AirSensor object. |
... |
Logical predicates defined in terms of the variables in
|
A subset of the incoming sensor.
Filtering predicates are applied to the meta
dataframe within
the sensor object.
sensor_filter
sensor_filterDate
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(AirSensor)
example_sensor_scaqmd %>%
sensor_extractMeta() %>%
dplyr::pull("communityRegion") %>%
sort () %>%
unique()
example_sensor_scaqmd %>%
sensor_filterMeta(communityRegion == "Imperial Valley") %>%
sensor_extractMeta() %>%
dplyr::pull("communityRegion") %>%
sort () %>%
unique()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.