Merge Two Time Series Data
Sets
mergeTimeSeries(TimeSeriesMath
tsData)
Merge data from the current time series data set with the time series data set tsData. The resultant time series data set includes all the data points in the two time series, except where the data points occur at the same time. When data points from the two data sets are coincident in time, valid values in the current time series take precedence over valid values from tsData. However, if a coincident point is set to missing in the current time series data set, a valid value from tsData will be used for time in the resultant data set. If the values are missing for both data sets, the value is missing in the resultant data set.
The data sets for merging may have either regular or irregular time interval time series data. The data sets are tested to determine if they both have the same regular time interval. If not, the resultant data set is typed as an irregular interval data set.
Parameters:
tsData – A time series data set for merging with the current time series
data set.
Example: tsMerged = tsData.mergeTimeSeries(otherTsData)
Returns: A new TimeSeriesMath object.