PWFSLSmoke (version 1.2.100)

tidy_toMonitor: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab