Changes mts_monitor formatted data into a 'mts_tidy' format that is useful for 'tidyverse' functions. If the given data is already in tidy format, it is returned as is.

monitor_toTidy(monitor = NULL)

Arguments

monitor

mts_monitor object.

Value

Tidy formatted mts_monitor data.

Examples

library(AirMonitorPlots)

monitor <-
  AirMonitor::NW_Megafires %>%
  AirMonitor::monitor_select(
    c('450d08fb5a3e4ea0_530470009', '123035bbdc2bc702_530470010_04')
  )
#> Warning: Requested IDs not found in 'meta': 450d08fb5a3e4ea0_530470009
#>   The returned object will have fewer time series than the number of 'deviceDeploymentIDs' requested.

mts_tidy <- monitor_toTidy(monitor)