Reshaping Data, Wide format from long
Hello everyone,
I'm having trouble formatting my data. I have a dataset that looks like this:
Country Year Gender Observation
Afghanistan 1976 Female 112587
Afghanistan 1976 All genders 729667
Afghanistan 1975 All genders 692342
Afghanistan 1975 Female 104019
Albania 2014 All genders 195720
Albania 2014 Female 92609
I want to format it to look like this instead:
Country Year Female All genders
Afghanistan 1976 112587 729667
Afghanistan 1975 104019 692342
Albania 2014 92609 195720
Any idea on how I could do this?
Thanks
0 Response to Reshaping Data, Wide format from long
Post a Comment