I'm trying to melt a table (csv) with subcategories but for some reason cannot get the desired result with melt.array
I have:
Region,Sender,Afghanistan,,,,
,,Adult,,Minor,,
,,Male ,Female,Male,Female,
EEA,Austria,165,8,6,10,
....
need:
Reg Send Rec Age Gender Value
EEA Austria Afghanistan Adult Male 165
EEA Austria Afghanistan Adult Female 8
EEA Austria Afghanistan Adult Male 6
EEA Austria Afghanistan Adult Female 10
....
and would be most grateful for some help!