inner2outer
Invert nested table-in-table hierarchy in tables or timetables
Syntax
Description
T2 = inner2outer(
finds the variables
in T1
)T1
that are themselves tables or timetables. It returns
T2
, a table or timetable that also contains nested tables or
timetables as variables. The names of the variables in T2
are
taken from the names of the variables inside the nested tables or timetables of
T1
. Then, inner2outer
regroups variables
in the nested tables or timetables of T2
appropriately. If
T1
has variables that are not tables or timetables, then
those variables are unaltered in T2
.
For example, if T1
has two variables named A
and B
, and they are each tables with variables named
X
, Y
, and Z
, then the
output table T2
has three variables. The variables of
T2
are named X
, Y
, and
Z
, each being a table with two variables named
A
and B
. The table variables
T1.A.X
and T1.B.X
are regrouped into
T2.X.A
and T2.X.B
. The other table
variables from T1
are regrouped in T2
following the same pattern.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2018a