find_supply_consumption_split: Find the split point between Supply and Consumption

View source: R/iea_splits.R

find_supply_consumption_splitR Documentation

Find the split point between Supply and Consumption

Description

Given a country's IEA extended energy balance data frame, find the row numbers that represent the transition between the Supply and Consumption sides of the ledger.

Usage

find_supply_consumption_split(
  .ctry_tbl,
  flow = IEATools::iea_cols$flow,
  losses = IEATools::tfc_compare_flows$losses,
  iron_and_steel = IEATools::manufacturing_flows$iron_and_steel,
  mining_and_quarrying = IEATools::industry_flows$mining_and_quarrying,
  tfc = IEATools::aggregation_flows$total_final_consumption,
  industry = IEATools::tfc_flows$industry
)

Arguments

.ctry_tbl

a country's IEA data frame

flow

See IEATools::iea_cols.

losses

See IEATools::tfc_compare_flows.

iron_and_steel

See IEATools::manufactuiring_flows.

mining_and_quarrying

See IEATools::industry_flows.

tfc

See IEATools::aggregation_flows.

industry

See IEATools::tfc_flows.

Details

Arguments should be supplied by the calling function.

An error is given if this function fails to find the location of the split between Supply and Consumption.

Value

a pair of integers representing the rows that straddle the split between the Supply and Consumption sides of the ledger


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