monitor_isEmpty: Test for an empty _mts_monitor_ object

View source: R/utils-monitor.R

monitor_isEmptyR Documentation

Test for an empty mts_monitor object

Description

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.

Usage

monitor_isEmpty(monitor)

Arguments

monitor

mts_monitor object

Value

Invisibly returns TRUE if no data exist in mts_monitor, FALSE otherwise.


AirMonitor documentation built on Sept. 27, 2024, 9:06 a.m.