I have a data set with three variables; country, year and UHCindex.
It has only two years 2017 and 2015.
Each country has its UHCindex for 2017 and 2015 hence observations for each country are two.
I would like to transform it so that there is are two new variables UHCindex2015 and UHCindex2017 so that we have one observation per country.