tidy_toMonitor: Convert 'ws_tidy' data to a 'ws_monitor' object

View source: R/tidy_toMonitor.R

tidy_toMonitorR Documentation

Convert 'ws_tidy' data to a 'ws_monitor' object

Description

Changes read-optomized 'tidy' formatted monitor data into a write-optomized 'ws_monitor' format. If the given data is already a 'ws_monitor' object, it is returned as is. This function is the inverse of monitor_toTidy.

Usage

tidy_toMonitor(data = NULL)

Arguments

data

Data to potentially convert.

Value

'ws_monitor' object

Examples

ws_monitor <- monitor_subset(
  Northwest_Megafires,
  monitorIDs = c('530470009_01', '530470010_01')
)

ws_monTidy <- monitor_toTidy(ws_monitor)
ws_monMon <- tidy_toMonitor(ws_monTidy)
head(ws_monMon$data)
head(ws_monitor$data)

MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.