I would like to convert a matrix into a dataset. The structure of the matrix is:
{{"5", "4", "3", "2", "1"},
{"A", 3, 1, 2, 0, 4},
{"B", 8, 29, 55, 14, 22},
{"C", 15, 87, 418, 728, 340},
{"D", 41, 28, 154, 821, 939},
{"E", 3, 21, 78, 257, 594}}
The first nested list are "column" headers, while the first element of each subsequent list are the "row" headers. The structure of the dataset should be:
Column1 Column2 Value
A 5 3
A 4 1
A 3 2
...
E 5 3
E 4 21
E 3 78
E 2 257
E 1 594