Learn R Programming

MazamaTimeSeries (version 0.3.0)

mts_check: Check mts object for validity

Description

Checks on the validity of an mts object. If any test fails, this function will stop with a warning message.

Usage

mts_check(mts)

Value

Returns TRUE invisibly if the mts object is valid.

Arguments

mts

mts object.

See Also

mts_isValid

Examples

Run this code
library(MazamaTimeSeries)

sts_check(example_mts)

# This would throw an error
if ( FALSE ) {

  broken_mts <- example_mts
  names(broken_mts) <- c('meta', 'bop')
  sts_check(broken_mts)

}

Run the code above in your browser using DataLab