extract_global_data_to_df: Extract global data from model-specific data list to a data...

View source: R/model-downscale.R

extract_global_data_to_dfR Documentation

Extract global data from model-specific data list to a data frame.

Description

Simple wrapper function to extract global data (region == "All") from list of model output data. Returns global-only data if executed after (remove_redundant_alls), as called from (prepare_preprocessed_data)

Usage

extract_global_data_to_df(
  model_data,
  input_region_col = "Region",
  output_region_col = "Region",
  ...
)

Arguments

model_data

list of model-specific data frames from which to extract the global data

input_region_col

name of the region column in the input data

output_region_col

name of the region column in the output (return) data

Details

Modeling teams may provide some data at the global level only, i.e., with no regional detail available. Such data is neither downscaled to countries/regions nor dropped. This function generates a data frame with global-only data from all models that can be binded to other data frames with regional detail.


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