mts_isValid: Test _mts_ object for correct structure

View source: R/utils-mts.R

mts_isValidR Documentation

Test mts object for correct structure

Description

The mts is checked for the presence of core meta and data columns.

Core meta columns include:

  • deviceDeploymentID – unique identifier (see MazmaLocationUtils)

  • deviceID – device identifier

  • locationID – location identifier (see MazmaLocationUtils)

  • locationName – English language name

  • longitude – decimal degrees E

  • latitude – decimal degrees N

  • elevation – elevation of station in m

  • countryCode – ISO 3166-1 alpha-2

  • stateCode – ISO 3166-2 alpha-2

  • timezone – Olson time zone

Core data columns include:

  • datetime – measurement time (UTC)

Usage

mts_isValid(mts = NULL, verbose = FALSE)

Arguments

mts

mts object

verbose

Logical specifying whether to produce detailed warning messages.

Value

Invisibly returns TRUE if mts has the correct structure, FALSE otherwise.

See Also

mts_check

Examples

library(MazamaTimeSeries)

print(mts_isValid(example_mts))


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