timetable

Methods

Method Reference: timetable.repelem

timetable: tt2 = repelem (tt, rows, cols)

Repeat each row and variable of a timetable in place.

tt2 = repelem (tt, rows, cols) repeats each row of tt rows times and each variable cols times, keeping the repeats of a row together. Either count may be a vector with one count per row, or per variable, and a count of zero drops that row or variable. Both counts must be given, a timetable having exactly two dimensions. Each repeated row carries the row time of the row it came from, so the result has repeated row times and is generally irregular; each repeated variable takes a numbered name, A becoming A, A_1.

See also: repmat, timetable

Source Code: timetable