The incoming ws_monitor object is filtered according to filter. Either meta data or actual data can be filtered.

monitor_subsetBy(ws_monitor, filter)

Arguments

ws_monitor

ws_monitor object

filter

a filter to use on the ws_monitor object

Value

A ws_monitor object with a subset of the input ws_monitor object.

Examples

library(PWFSLSmoke) N_M <- Northwest_Megafires boise_tz <- monitor_subsetBy(N_M, timezone == 'America/Boise') boise_tz_very_unhealthy <- monitor_subsetBy(boise_tz, data > AQI$breaks_24[5]) boise_tz_very_unhealthy$meta$siteName
#> [1] "Nampa Fire Station" "Salmon PM2.5" #> [3] "Idaho Falls / Penford" "St. Lukes Meridian" #> [5] "Ketchum" "Shoshone Bannock Tribes" #> [7] "Franklin"