R/utils-sts.R
sts_isEmpty.Rd
Convenience function for nrow(sts$data) == 0. This makes for more readable code in functions that need to test for this.
nrow(sts$data) == 0
sts_isEmpty(sts)
sts object
TRUE if no data exist in sts, FALSE otherwise.
TRUE
sts
FALSE
library(MazamaTimeSeries) sts_isEmpty(example_sts) #> [1] FALSE