lag
Time-shift data in timetable
Description
TT2 = lag(
shifts the data in each variable inTT1
)TT1
forward in time by one time step. A shift forward in time is alag. The row times ofTT1
must be regular.
The timetablesTT1
andTT2
have the same row times. When you shift the data in each variable forward,lag
fills the first row ofTT2
with missing data indicators.