monitor_isolate: Isolate Individual Monitors

Description Usage Arguments Value See Also Examples

View source: R/monitor_isolate.R

Description

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.

Usage

1
2
3
4
5
6
7
8
9
monitor_isolate(
  ws_monitor,
  xlim = NULL,
  ylim = NULL,
  tlim = NULL,
  monitorIDs = NULL,
  stateCodes = NULL,
  timezone = "UTC"
)

Arguments

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 POSIXct)

monitorIDs

optional vector of monitorIDs

stateCodes

optional vector of stateCodes

timezone

Olson timezone passed to parseDatetime when parsing numeric tlim

Value

A list of isolated ws_monitor objects.

See Also

monitor_subset

Examples

1
2
3
4
5
6
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)

PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.