TimeSeriesInsert
TimeSeriesInsert[tseries,{t,v}]
inserts a value v at time t in the time series tseries.
TimeSeriesInsert[tseries1,tseries2]
inserts the time-value pairs from tseries2 into tseries1.
Details
- TimeSeriesInsert is often used to add a value to a time series, to concatenate two time series, or to replace erroneous or missing values.
- The time series tseries can be a list of numeric values {x1,x2,…}, a list of time-value pairs {{t1,x1},{t2,x2},…}, a TimeSeries, an EventSeries, or TemporalData.
- The time t can be given as numbers or dates.
- If a value is already present at time t it will be replaced by v.
Examples
open allclose allBasic Examples (3)
Scope (10)
Basic Uses (4)
Add a value to the start of a time series:
Insert the value 20 at time 0:
Concatenate a time series and forecast:
Replace an erroneous value with Missing[]:
Data Types (6)
A time series given as time-value pairs:
Insert a value into a TimeSeries:
Insert a value into an EventSeries:
Multiple paths given as TemporalData:
Insert a Quantity:
Text
Wolfram Research (2014), TimeSeriesInsert, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeSeriesInsert.html.
CMS
Wolfram Language. 2014. "TimeSeriesInsert." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeSeriesInsert.html.
APA
Wolfram Language. (2014). TimeSeriesInsert. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeSeriesInsert.html