View source: R/monitor_isolate.R
monitor_isolate | R Documentation |
Filters ws_monitor
according to the parameters
passed in. If any parameter is not specified, that parameter will not be used in the filtering.
After filtering, each monitorID found in ws_monitor
is extracted
and its data
dataframe is restricted to the times from when that monitor first
datapoint until its last datapoint.
This function is useful when ws_monitor objects are created for mobile monitors that are deployed to different locations in different years.
monitor_isolate(
ws_monitor,
xlim = NULL,
ylim = NULL,
tlim = NULL,
monitorIDs = NULL,
stateCodes = NULL,
timezone = "UTC"
)
ws_monitor |
ws_monitor object |
xlim |
optional vector with low and high longitude limits |
ylim |
optional vector with low and high latitude limits |
tlim |
optional vector with start and end times (integer or character representing YYYYMMDD[HH] or |
monitorIDs |
optional vector of monitorIDs |
stateCodes |
optional vector of stateCodes |
timezone |
Olson timezone passed to |
A list of isolated ws_monitor objects.
monitor_subset
N_M <- Northwest_Megafires
# monitor_leaflet(N_M) # to identify Spokane monitorIDs
Spokane <- monitor_subsetBy(N_M, stringr::str_detect(N_M$meta$monitorID,'^53063'))
Spokane$meta$monitorID
monitorList <- monitor_isolate(Spokane)
names(monitorList)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.