Skip to contents

Usage

specify_all(
  .tidy_iea_df,
  split_own_use_elect_chp_heat_using_shares_of = c("input", "output"),
  route_non_specified_eiou = TRUE,
  route_non_specified_tp = TRUE
)

Arguments

.tidy_iea_df

A tidy data frame containing IEA extended energy balance data

split_own_use_elect_chp_heat_using_shares_of

Indicates whether the input or outputs to Main activity producer plants should be use for splitting the Own use in electricity, CHP and heat plants EIOU flow. Default is "input".

route_non_specified_eiou

Boolean stating whether non-specified EIOU flows should be routed to existing industries Default is TRUE.

route_non_specified_tp

Boolean stating whether non-specified transformation processes flows should be routed to existing industries Default is TRUE.

Value

An enhanced and corrected version of .tidy_iea_df

That is ready for physical supply-use table (PSUT) analysis.

Details

Each bundled function is called in turn using default arguments. See examples for two ways to achieve the same result.

Examples

# Simple
load_tidy_iea_df() %>% 
  specify_all()
#> # A tibble: 429 × 11
#>    Country Method Energy.type Last.stage  Year Ledger.side
#>    <chr>   <chr>  <chr>       <chr>      <dbl> <chr>      
#>  1 GHA     PCM    E           Final       1971 Consumption
#>  2 GHA     PCM    E           Final       1971 Consumption
#>  3 GHA     PCM    E           Final       1971 Consumption
#>  4 GHA     PCM    E           Final       1971 Consumption
#>  5 GHA     PCM    E           Final       1971 Consumption
#>  6 GHA     PCM    E           Final       1971 Consumption
#>  7 GHA     PCM    E           Final       1971 Consumption
#>  8 GHA     PCM    E           Final       1971 Consumption
#>  9 GHA     PCM    E           Final       1971 Consumption
#> 10 GHA     PCM    E           Final       1971 Consumption
#> # ℹ 419 more rows
#> # ℹ 5 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> #   Unit <chr>, E.dot <dbl>
# Complicated
load_tidy_iea_df() %>% 
  specify_primary_production() %>% 
  specify_tp_eiou() %>% 
  specify_bunkers() %>% 
  specify_interface_industries() %>% 
  tp_sinks_to_nonenergy()
#> # A tibble: 429 × 11
#>    Country Method Energy.type Last.stage  Year Ledger.side
#>    <chr>   <chr>  <chr>       <chr>      <dbl> <chr>      
#>  1 GHA     PCM    E           Final       1971 Consumption
#>  2 GHA     PCM    E           Final       1971 Consumption
#>  3 GHA     PCM    E           Final       1971 Consumption
#>  4 GHA     PCM    E           Final       1971 Consumption
#>  5 GHA     PCM    E           Final       1971 Consumption
#>  6 GHA     PCM    E           Final       1971 Consumption
#>  7 GHA     PCM    E           Final       1971 Consumption
#>  8 GHA     PCM    E           Final       1971 Consumption
#>  9 GHA     PCM    E           Final       1971 Consumption
#> 10 GHA     PCM    E           Final       1971 Consumption
#> # ℹ 419 more rows
#> # ℹ 5 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> #   Unit <chr>, E.dot <dbl>