Good evening,
I have data that looks sort of like this example:
Etc. for a dataset with thousands of rows of countries and years.
And i would like to remove the distinction of the origin countries so that the refugees are added up like so (using the example):
Are there any commands i could use to combine the refugee data per year/host-country group?
I have data that looks sort of like this example:
Year | Host Country | Origin Country | Refugees |
2000 | Afghanistan | Lebanon | 20 |
2000 | Afghanistan | Syria | 30 |
2001 | Afghanistan | Lebanon | 40 |
2001 | Afghanistan | Syria | 60 |
2001 | Afghanistan | Palestine | 20 |
2000 | Germany | Albania | 5 |
2000 | Germany | Algeria | 10 |
2000 | Germany | Syria | 50 |
And i would like to remove the distinction of the origin countries so that the refugees are added up like so (using the example):
Year | Host Country | Refugees total |
2000 | Afghanistan | 50 |
2001 | Afghanistan | 120 |
2000 | Germany | 65 |
Comment