Hi,
I have a dataset of the form:
And I want to reshape it to:
I have tried multiple options using reshape but have not managed to achieve this so far. Any help would be super appreciated.
Many thanks!
I have a dataset of the form:
| Event | year |
| event1 | 2002 |
| event2 | 2005 |
| event3 | 2001 |
| year_event1 | year_event2 | year_event3 |
| 2002 | 2005 | 2001 |
Many thanks!

Comment