WLJS LogoWLJS Notebook

TimeSeriesShift

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

Examples

Shift a time series forward by 5 units:

ts = TimeSeries[{1, 2, 3, 4, 5}];
TimeSeriesShift[ts, 5]

Shift backward by 2 units:

TimeSeriesShift[TimeSeries[Range[10]], -2]

Please visit the official Wolfram Language Reference for more details.

On this page