Convenience function for nrow(mts$data) == 0. This makes for more readable code in functions that need to test for this.

mts_isEmpty(mts)

Arguments

mts

mts object

Value

TRUE if no data exist in mts, FALSE otherwise.

Examples

library(MazamaTimeSeries)

mts_isEmpty(example_mts)
#> [1] FALSE