load_country_region_mappings: Get the country-to-region mappings for the project and...

View source: R/model-downscale.R

load_country_region_mappingsR Documentation

Get the country-to-region mappings for the project and optionally for a set of models

Description

Returns a list of data frames, each named according to the data source/model, each of which has two columns: iso and region.

Usage

load_country_region_mappings(
  model_data_folder = NA_character_,
  model_names = NA_character_,
  item_map_name = "item",
  ...
)

Arguments

model_data_folder

folder where the pre-processed model output data is located. If NA, this will return a list with a single internal (included with the package) country-to-region mapping table for iTEM project regions.

item_map_name

the name of the dataframe with the iTEM project country-to-region mapping

Details

This function is designed to return country-to-region mapping assignments as required by other functions in the package. If a model data folder is provided, the function requires that the mapping lists be within this folder as model/regions.yaml. If no such folder is provided, then the returned list will only have the internal (i.e., this project's) country-to-region mapping.


transportenergy/item_mip_data_processing documentation built on July 6, 2023, 7:51 p.m.