I have a data-set like the one below which reports the share of let's say export of ID to different regions. The data set includes other variables as well.
id | region1 | region1 % | region2 | region2 % |
1 | EU | 95 | US | 5 |
2 | US | 90 | Japan | 10 |
Hence, the new dataset should look like this one:
id | EU | US | Japan |
1 | 95 | 5 | . |
2 | . | 90 | 10 |
Any help would be very much appreciated!
Thanks,
0 Response to Levels of multiple similar variables
Post a Comment