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.

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.

Value

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

Details

This function runs sequentially the following functions:

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).

Examples

tidy_AB_data %>%
IEATools::add_psut_matnames() %>%
transform_to_gma()
#> # A tibble: 101 × 12
#>    Country Method Energy.type Last.stage  Year Ledger.side
#>    <chr>   <chr>  <chr>       <chr>      <dbl> <chr>      
#>  1 World   PCM    E           Final       2018 Supply     
#>  2 World   PCM    E           Final       2018 Supply     
#>  3 World   PCM    E           Final       2018 Supply     
#>  4 World   PCM    E           Final       2018 Supply     
#>  5 World   PCM    E           Final       2018 Supply     
#>  6 World   PCM    E           Final       2018 Supply     
#>  7 World   PCM    E           Final       2018 Supply     
#>  8 World   PCM    E           Final       2018 Supply     
#>  9 World   PCM    E           Final       2018 Supply     
#> 10 World   PCM    E           Final       2018 Supply     
#> # ℹ 91 more rows
#> # ℹ 6 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> #   Unit <chr>, E.dot <dbl>, matnames <chr>