{{"", "", "ITA", "ITA", "ITA", "EU", "EU", "EU", "RDM", "RDM", "RDM",
"ITA", "ITA", "EU", "EU", "RDM", "RDM", ""}, {"", "", "agri", "ind",
"serv", "agri", "ind", "serv", "agri", "ind", "serv", "cons",
"inv", "cons", "inv", "cons", "inv", "tot"}, {"ITA", "agri", 3, 2,
4, 10, 15, 1, 1, 5, 2, 20, 0, 16, 0, 10, 0, 89}, {"ITA", "ind", 24,
75, 55, 4, 55, 20, 1, 40, 15, 50, 20, 10, 12, 40, 10, 431}, {"ITA",
"serv", 8, 47, 30, 1, 44, 32, 1, 25, 15, 68, 2, 20, 2, 12, 1,
308}, {"EU", "agri", 3, 1, 1, 120, 120, 35, 70, 105, 22, 38, 1, 379,
12, 233, 5, 1145}, {"EU", "ind", 15, 55, 45, 225, 650, 166, 12,
410, 132, 95, 18, 790, 280, 383, 90, 3366}, {"EU", "serv", 1, 47,
25, 95, 374, 430, 120, 410, 340, 65, 12, 920, 15, 650, 10,
3514}, {"RDM", "agri", 1, 0, 1, 68, 22, 75, 350, 480, 120, 22, 0,
222, 8, 1450, 55, 2874}, {"RDM", "ind", 12, 27, 22, 255, 646, 170,
750, 1640, 470, 120, 32, 500, 400, 1450, 220, 6714}, {"RDM", "serv",
0, 12, 12, 45, 285, 325, 322, 450, 450, 22, 1, 450, 10, 848, 34,
3266}, {"", "va", 22, 165, 113, 322, 1155, 2260, 1247, 3149, 1700,
"", "", "", "", "", "", 10133}, {"", "out", 89, 431, 308, 1145,
3366, 3514, 2874, 6714, 3266, 500, 86, 3307, 739, 5076, 425, ""}}
This is my starting point. I've imported the matrix. I'm trying to write a procedure to extract the matrix of "ITA" but I'm not able to create an association. I want to write ITA and get the 3x3 matrix with the respective labels and a 3x2 too. it is important to maintain the two labels.
I show you the result i need to reach (in mathematica) because i don't know if i've explained it well: