TimeSeriesShift

TimeSeriesShift[tseries,shift]
shifts the time series tseries to the left or right according to shift.

DetailsDetails

  • TimeSeriesShift is used to align the start of a time series with a particular time.
  • The input tseries can be a list of values , a list of time-value pairs , a TimeSeries, EventSeries, or TemporalData.
  • Settings for shift include:
  • τshift by τ
    {k,step}shift k steps
    {{tmin}}set
  • The shift τ can be any real number or a time Quantity.
  • For integer k, is equivalent to giving {k,MinimumTimeIncrement[tseries]}.
  • The step can be a number or date step such as , , , etc.
  • TimeSeriesShift threads over paths for multipath TemporalData.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Shift a time series ahead 2.5:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Shift backward 2.5:

In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=

Shift a time series ahead 30 days:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Set the starting time for a time series to 100:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
Introduced in 2014
(10.0)