timetable.pivot
timetable: P = pivot (tt, Name, Value, …)
Summarise a timetable across two grouping dimensions.
P = pivot (tt, groups the rows of tt by
rowvars down the page and by colvars across it, and returns
a 'Rows', rowvars,
'Columns', colvars)table holding one row per row group and one variable per
column group. At least one of the two must be given.
Either may name the row dimension, which groups by the row times: as
'Rows' they become a variable of the result, and as
'Columns' they name its variables. The result is a table and
not a timetable, its rows and columns being groups rather than
instants.
With no 'DataVariable' the cells count the rows of each group;
with one they summarise its values, by 'Method', which defaults
to summing them.
The following Name/Value pairs are accepted:
'Rows', 'Columns''DataVariable''Method''RowsBinMethod', 'ColumnsBinMethod''IncludedEdge' saying which edge of a bin is included.'IncludeMissingGroups', 'IncludeEmptyGroups''IncludeTotals'Overall_<method>.'RowLabelPlacement''OutputFormat''flat' (the default) or 'nested', which groups the data
variables into nested tables by the column hierarchy.See also: groupsummary, timetable
Source Code: timetable