mts_check: Check _mts_ object for validity

View source: R/utils-mts.R

mts_checkR Documentation

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)

Arguments

mts

mts object.

Value

Returns TRUE invisibly if the mts object is valid.

See Also

mts_isValid

Examples

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)

}


MazamaTimeSeries documentation built on June 8, 2025, 2 p.m.