View source: R/utils-monitor.R
monitor_isEmpty | R Documentation |
This function returns true under the following conditions:
no time series: ncol(monitor$data) == 1
no time series records: nrow(monitor$data) == 0
all timeseries values are NA
This makes for more readable code in functions that need to test for this.
monitor_isEmpty(monitor)
monitor |
mts_monitor object |
Invisibly returns TRUE
if no data exist in mts_monitor
, FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.