monitor_join: Merge Data for Monitors with Shared monitorIDs

Description Usage Arguments Value Examples

View source: R/monitor_join.R

Description

For each monitor in monitorIDs, an attempt is made to merge the associated data from ws_monitor1 and ws_monitor2 and.

This is useful when the same monitorID appears in different ws_monitor objects representing different time periods. The returned ws_monitor object will cover both time periods.

Usage

1
monitor_join(ws_monitor1 = NULL, ws_monitor2 = NULL, monitorIDs = NULL)

Arguments

ws_monitor1

ws_monitor object

ws_monitor2

ws_monitor object

monitorIDs

vector of shared monitorIDs that are to be joined together. Defaults to all shared monitorIDs.

Value

A ws_monitor object with merged timeseries.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
Jul <- monitor_subset(Northwest_Megafires,
                      tlim=c(2015070100,2015073123),
                      timezone='America/Los_Angeles')
Aug <- monitor_subset(Northwest_Megafires,
                      tlim=c(2015080100,2015083123),
                      timezone='America/Los_Angeles')
Methow_Valley <- monitor_join(Jul, Aug, monitorIDs=c('530470010_01','530470009_01'))

## End(Not run)

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.