lag
Shift timetable data by rows.
📝Syntax
TT2 = lag(TT, n)
📥Input Arguments
Parameter Description
TT Input timetable.
n Integer row shift.
📤Output Arguments
Parameter Description
TT2 Shifted timetable.
📄Description

lag shifts timetable variables by n rows while keeping row times unchanged.

💡Examples
TT = timetable(seconds([1; 2; 3]), [10; 20; 30], 'VariableNames', {'A'});
lag(TT)
🔗See Also
timetable
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub