The ts_upd_elem() function

The ts_upd_elem() function updates an element in an existing time series at a given timepoint.

Syntax

ts_timeseries *  
ts_upd_elem(ts_tsdesc   *tsdesc, 
             ts_tselem   tselem, 
             mi_datetime *tstamp)
tsdesc
A descriptor of the time series to be updated, returned by ts_open().
tselem
The element to update.
tstamp
The timepoint at which to update the element.

Description

There must already be an element at the given time stamp. For irregular time series, hidden elements cannot be updated.

The equivalent SQL function is UpdElem.

Returns

An updated copy of the original time series.