Hi all,
I need some help organizing my data please. This is kinda of what I currently have:
I want to organize them into something like this, since I only have two years, I want to create two columns for each var that captures the years variables, so that later on I can create other variables to calculate things such as %change, etc.
Much appreciated!!!
I need some help organizing my data please. This is kinda of what I currently have:
| year | var1 | var2 | var3 |
| 2020 | 1 | 1 | 1 |
| 2020 | 2 | 2 | 2 |
| 2022 | 3 | 3 | 3 |
| 2022 | 4 | 4 | 4 |
| var1_2020 | var1_2022 | var2_2020 | var2_2022 | var3_2020 | var3_2022 |
| 1 | 3 | 1 | 3 | 1 | 3 |
| 2 | 4 | 2 | 4 | 2 | 4 |
Much appreciated!!!

Comment