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.

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)
#> datetime 530470009_01 530470010_01 #> 1 2015-05-31 00:00:00 5.5 5.7 #> 2 2015-05-31 01:00:00 4.5 4.7 #> 3 2015-05-31 02:00:00 5.5 7.7 #> 4 2015-05-31 03:00:00 7.3 13.7 #> 5 2015-05-31 04:00:00 7.8 14.1 #> 6 2015-05-31 05:00:00 8.2 14.3
head(ws_monitor$data)
#> datetime 530470009_01 530470010_01 #> 1 2015-05-31 00:00:00 5.5 5.7 #> 2 2015-05-31 01:00:00 4.5 4.7 #> 3 2015-05-31 02:00:00 5.5 7.7 #> 4 2015-05-31 03:00:00 7.3 13.7 #> 5 2015-05-31 04:00:00 7.8 14.1 #> 6 2015-05-31 05:00:00 8.2 14.3