Learn R Programming

MazamaTimeSeries (version 0.3.0)

sts_isEmpty: Test for empty sts object

Description

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

Usage

sts_isEmpty(sts)

Value

TRUE if no data exist in sts, FALSE otherwise.

Arguments

sts

sts object

Examples

Run this code
library(MazamaTimeSeries)

sts_isEmpty(example_sts)

Run the code above in your browser using DataLab