ashmanyeah
New Member
- Joined
- Mar 20, 2018
- Messages
- 4
Hi all,
I have downloaded a dataset and it is not consistent (in terms of how it displays the data) compared with other datasets I have. Does anyone know the most efficient way I could transform the data to look like the dataset on the right hand side? For example, I would want the years in a single column with the next column being the values for the variable in question. Obviously the country names would need to be replicated for each year, so if my dataset was from 1960 to 2010, Aruba would show up 60 times, then followed by Afghanistan etc.
If I have not explained myself sufficiently, please let me know.
Thanks
THIS IS THE IMAGE - I could not upload it to this thread for some reason (maybe too large of a filesize?)
https://postimg.org/image/h1fz6tl57/
I have downloaded a dataset and it is not consistent (in terms of how it displays the data) compared with other datasets I have. Does anyone know the most efficient way I could transform the data to look like the dataset on the right hand side? For example, I would want the years in a single column with the next column being the values for the variable in question. Obviously the country names would need to be replicated for each year, so if my dataset was from 1960 to 2010, Aruba would show up 60 times, then followed by Afghanistan etc.
If I have not explained myself sufficiently, please let me know.
Thanks
THIS IS THE IMAGE - I could not upload it to this thread for some reason (maybe too large of a filesize?)
https://postimg.org/image/h1fz6tl57/