I have a question regarding the combination of multiple columns into one column. There is probably a not so fancy solution, but I don't get it the way I want.
The dataset I have looks like this:
ID  TIME  M1   M2   M3
1   1     0.5  1.5  2
1   2     0.7  1.8  3
2   1     0.3  1.4  1.5
2   2     0.6  1.5  2.3
What I want to do is somehow combine the columns M1 to M3 in this way:
ID  TIME  Mall  Value  
1   1     M1    0.5
1   1     M2    1.5
1   1     M3    2
1   2     M1    0.7
1   2     M2    1.8
1   2     M3    3
etc.
Thanks in advance!
 
     
     
    