Convenience function for nrow(mts$data) == 0
.
This makes for more readable code in functions that need to test for this.
mts_isEmpty(mts)
mts object
TRUE
if no data exist in mts
, FALSE
otherwise.
library(MazamaTimeSeries)
mts_isEmpty(example_mts)
#> [1] FALSE