Hi everyone,
I have a data set that looks like this example:
And I want to make it like Panel Data. Can you please help me with it? I tried "reshape," but it's not working.
I have a data set that looks like this example:
ID | Country | Year1 | Year2 | Year3 | Year4 | Year5 | Year6 |
1 | US | 12 | 13 | 10 | 5 | 3 | 2 |
2 | US | 123 | 124 | 546 | 23 | 123 | 34 |
3 | US | 432 | 1232 | 123 | 3423 | 765 | 56 |
And I want to make it like Panel Data. Can you please help me with it? I tried "reshape," but it's not working.
Comment