Dear all,
I would like to undertake a complex reshape and all the various commands I tried, did not work. I am sure there is already a solution to my problem in this forum, however, all the posts, I've read, did not help to solve my problem. Here is an example of the data that I have and what I would like to achieve with the reshape:
Actual data:
New data strcuture after reshape:
What is even the description for such a reshape? I even had problems to enter the correct search terms.
Thank you very much in advance!
I would like to undertake a complex reshape and all the various commands I tried, did not work. I am sure there is already a solution to my problem in this forum, however, all the posts, I've read, did not help to solve my problem. Here is an example of the data that I have and what I would like to achieve with the reshape:
Actual data:
i | j | y2012 | y2013 |
1 | 1 | 10 | 50 |
1 | 2 | 20 | 60 |
2 | 1 | 30 | 70 |
2 | 2 | 40 | 80 |
New data strcuture after reshape:
i | y | j1 | j2 |
1 | 2012 | 10 | 20 |
1 | 2013 | 50 | 60 |
2 | 2012 | 30 | 40 |
2 | 2013 | 70 | 80 |
What is even the description for such a reshape? I even had problems to enter the correct search terms.
Thank you very much in advance!
Comment