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

sts_isEmpty(sts)

Arguments

sts

sts object

Value

TRUE if no data exist in sts, FALSE otherwise.

Examples

library(MazamaTimeSeries)

sts_isEmpty(example_sts)
#> [1] FALSE