Hi Henrik,
I got unequal lengths ; {32, 24, 48}; for {Japan, Korea, India} in the data0. I there a shorter way to determine the minimum length value?
Also, I would like to plot the records based on the minimum length ( 24 ) with a simple and shorter solution way?
data0 = <|"Japan" -> <|1971 -> {17.3`, 91.4`, 36.5`, 127.3`, 6.8`,
15.6`, 0.6`, 5.4`, 11.8`, 1.6`, 60.1`, 64.`},
1972 -> {19.8`, 87.3`, 29.7`, 36.2`, 36.2`, 26.5`, 8.2`, 9.3`,
37.7`, 28.5`},
1973 -> {25.8`, 23.4`, 38.2`, 86.3`, 28.4`, 34.1`, 10.2`, 18.2`,
65.`, 78.3`}|>,
"Korea" -> <|1971 -> {7.`, 82.3`, 171.5`, 223.9`, 9.3`, 0.4`, 5.`,
0.9`, 0.`, 19.4`, 81.6`, 49.5`},
1972 -> {61.3`, 34.9`, 69.5`, 146.1`, 92.7`, 51.1`, 0.`, 0.`,
16.7`, 28.3`, 40.8`, 0.3`}|>,
"India" -> <|1971 -> {48.7`, 97.8`, 115.8`, 56.7`, 51.1`, 34.6`,
90.9`, 53.1`, 84.9`, 208.2`, 117.`, 233.1`},
1972 -> {58.6`, 38.4`, 36.4`, 79.8`, 39.9`, 210.3`, 34.9`,
115.6`, 119.1`, 175.6`, 106.5`, 48.8`},
1973 -> {69.5`, 79.7`, 116.7`, 68.1`, 93.1`, 99.7`, 32.2`, 30.7`,
12.5`, 167.6`, 359.8`, 185.8`},
1974 -> {52.5`, 64.6`, 52.7`, 53.8`, 55.`, 19.5`, 39.`, 97.1`,
46.4`, 97.9`, 170.6`, 217.4`}|>|>;
w1 = Normal /@ (Normal@data0["Japan"])
{1971 -> {17.3, 91.4, 36.5, 127.3, 6.8, 15.6, 0.6, 5.4, 11.8, 1.6,
60.1, 64.},
1972 -> {19.8, 87.3, 29.7, 36.2, 36.2, 26.5, 8.2, 9.3, 37.7, 28.5},
1973 -> {25.8, 23.4, 38.2, 86.3, 28.4, 34.1, 10.2, 18.2, 65., 78.3}}
Japan = Flatten[Part[#, 2] & /@ w1]
{17.3, 91.4, 36.5, 127.3, 6.8, 15.6, 0.6, 5.4, 11.8, 1.6, 60.1, 64., \
19.8, 87.3, 29.7, 36.2, 36.2, 26.5, 8.2, 9.3, 37.7, 28.5, 25.8, 23.4, \
38.2, 86.3, 28.4, 34.1, 10.2, 18.2, 65., 78.3}
w2 = Normal /@ (Normal@data0["Korea"])
{1971 -> {7., 82.3, 171.5, 223.9, 9.3, 0.4, 5., 0.9, 0., 19.4, 81.6,
49.5}, 1972 -> {61.3, 34.9, 69.5, 146.1, 92.7, 51.1, 0., 0., 16.7,
28.3, 40.8, 0.3}}
Korea = Flatten[Part[#, 2] & /@ w2]
{7., 82.3, 171.5, 223.9, 9.3, 0.4, 5., 0.9, 0., 19.4, 81.6, 49.5, \
61.3, 34.9, 69.5, 146.1, 92.7, 51.1, 0., 0., 16.7, 28.3, 40.8, 0.3}
w3 = Normal /@ (Normal@data0["India"])
{1971 -> {48.7, 97.8, 115.8, 56.7, 51.1, 34.6, 90.9, 53.1, 84.9,
208.2, 117., 233.1},
1972 -> {58.6, 38.4, 36.4, 79.8, 39.9, 210.3, 34.9, 115.6, 119.1,
175.6, 106.5, 48.8},
1973 -> {69.5, 79.7, 116.7, 68.1, 93.1, 99.7, 32.2, 30.7, 12.5,
167.6, 359.8, 185.8},
1974 -> {52.5, 64.6, 52.7, 53.8, 55., 19.5, 39., 97.1, 46.4, 97.9,
170.6, 217.4}}
India = Flatten[Part[#, 2] & /@ w3]
{48.7, 97.8, 115.8, 56.7, 51.1, 34.6, 90.9, 53.1, 84.9, 208.2, 117., \
233.1, 58.6, 38.4, 36.4, 79.8, 39.9, 210.3, 34.9, 115.6, 119.1, \
175.6, 106.5, 48.8, 69.5, 79.7, 116.7, 68.1, 93.1, 99.7, 32.2, 30.7, \
12.5, 167.6, 359.8, 185.8, 52.5, 64.6, 52.7, 53.8, 55., 19.5, 39., \
97.1, 46.4, 97.9, 170.6, 217.4}
lengths = Length /@ {Japan, Korea, India}
{32, 24, 48}
ListLinePlot /@ {Japan, Korea, India}