transform_to_gma: Transforms to Global Market Assumption

View source: R/transforms_to_gma.R

transform_to_gmaR Documentation

Transforms to Global Market Assumption

Description

This function transforms a .tidy_iea_df that contains the representation of the Energy Conversion Chain for multiple countries into a new tidy_iea_df that represents a Global Energy Conversion Chain, adopting the Global Market Assumption.

Usage

transform_to_gma(.tidy_iea_df)

Arguments

.tidy_iea_df

The .tidy_iea_df that needs to be converted into a data frame describing a Global Energy Conversion Chain, adopting the Global Market Assumption.

Details

This function runs sequentially the following functions:

  • specify_MR_R();

  • specify_MR_V();

  • specify_MR_Y_U_gma(); and then binds all rows obtained using dplyr::bind_rows().

Note: running this function to transform to the Global Market Assumption only makes sense when the country coverage is global, or close to global (i.e. only countries consuming a very small fraction of global energy consumption, and only producing a very small fraction of global energy production, are missing).

Value

A .tidy_iea_df describing a Global Energy Conversion Chain, adopting a Global Market Perspective.

Examples

tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
transform_to_gma()

earamendia/ECCTools documentation built on May 12, 2023, 2:12 a.m.