TT2 = lag(TT, n)
| Parameter | Description |
|---|---|
| TT | Input timetable. |
| n | Integer row shift. |
| Parameter | Description |
|---|---|
| TT2 | Shifted timetable. |
lag shifts timetable variables by n rows while keeping row times unchanged.
TT = timetable(seconds([1; 2; 3]), [10; 20; 30], 'VariableNames', {'A'});
lag(TT)
| Version | Description |
|---|---|
| 2.0.0 | initial version |