Let's say I have a table in Mathematica like so:
Where the first row is the header, and first column is also a header (similar to a multiplication table). ie S_AS_A = Es; S_BS_A = ss_sigma;
The layout for this list is like so:
{
{
{header row},
{"row name1",row item 1, row item 2, etc...}
{"row name 2", row item 1, row item 2, etc...}
}
}
How do I flatten this table into an association thread like so:
S_A
,ss_sigma
etc. are not valid variable names in Mathematica. Underscores are used to define patterns (look upBlank
in the documentation) $\endgroup$