View source: R/model-downscale.R
aggregate_item_regions | R Documentation |
This function takes in a data frame with quantity flow data by ISO code and a mapping from ISO code to iTEM region. It joins in the appropriate iTEM region for each country ISO code, aggregates by these regions, and returns a dataframe.
aggregate_item_regions(
downscaled_data,
item_region_map = load_country_region_mappings()[["item"]],
compute_global_totals = FALSE,
...
)
downscaled_data |
data frame with downscaled (i.e. country-level) data. Can also include global totals, assigned to iso code "All". |
item_region_map |
data table mapping from 3-digit ISO code to iTEM region, called from
( |
compute_global_totals |
logical indicating whether to compute the global totals. The default is FALSE, as it is
assumed that this step has been conducted under ( |
The mapping from ISO code to iTEM region is user-specified with a provided default.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.