specify_all: Specify all industries

View source: R/specify.R

specify_allR Documentation

Specify all industries

Description

This is a convenience function. It bundles several others:

  1. specify_primary_production()

  2. specify_tp_eiou()

  3. specify_interface_industries()

  4. tp_sinks_to_nonenergy()

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.

Details

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

Value

An enhanced and corrected version of .tidy_iea_df That is ready for physical supply-use table (PSUT) analysis.

Examples

# Simple
load_tidy_iea_df() %>% 
  specify_all()
# Complicated
load_tidy_iea_df() %>% 
  specify_primary_production() %>% 
  specify_tp_eiou() %>% 
  specify_bunkers() %>% 
  specify_interface_industries() %>% 
  tp_sinks_to_nonenergy()

MatthewHeun/IEATools documentation built on Feb. 6, 2024, 3:29 p.m.