sts_distinct: Retain only distinct data records in 'sts$data'

View source: R/utils-sts.R

sts_distinctR Documentation

Retain only distinct data records in sts$data

Description

Three successive steps are used to guarantee that the datetime axis contains no repeated values:

  1. remove any duplicate records

  2. guarantee that rows are in datetime order

  3. average together fields for any remaining records that share the same datetime

Usage

sts_distinct(sts)

Arguments

sts

sts object

Value

An sts object where each record is associated with a unique time. (A list with meta and data dataframes.)


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