Split multicolumn variables in table or timetable
T2 = splitvars(
splits all
multicolumn variables in T1
)T1
so that they are single-column
variables in T2
(see diagram). All single-column variables from
T1
are unaltered.
If a variable in T1
has multiple columns, then
splitvars
makes unique names for the new variables
in T2
from the name of the original variable in
T1
.
If a variable in T1
is a table itself, then
splitvars
uses the names of its variables (and, if
necessary, the name of that table) to make unique names for the new
variables in T2
.
To merge variables into one multicolumn variable, use the mergevars
function.
addvars
| mergevars
| movevars
| removevars
| renamevars