I want to recode a set of GDP data, but I can't find a command that gets it into a format that I could merge into my other data sets.
The data currently looks like
Country Name | 1960 | 1961 |
---|---|---|
Aruba | 5,000,000 | 5,400,000 |
And so on for each year, but I need it to look like
Country name | Year | Amount |
---|---|---|
Aruba | 1960 | 5,000,000 |
Aruba | 1961 | 5,400,000 |
I've been screwing with the data with r, excel, and SPSS, and I don't know how to do this in any of them. Any advice would be appreciated.