aggregate_country_deciles_to_regions.RdFunction to aggregate country deciles to regions
aggregate_country_deciles_to_regions( df, value_col = "Income..net.", grouping_variables = c("GCAM_region_ID", "year") )
| df | dataframe with decile data |
|---|---|
| grouping_variables | variables to group by. This should point to the new regional mapping and any other dimension that you want to aggregate to. |