find_transformation_end: Find the point where Transformation processes end

View source: R/iea_splits.R

find_transformation_endR Documentation

Find the point where Transformation processes end

Description

Given a country's IEA extended energy balance data frame, find the row numbers that represent the transition between the Transformation processes and Energy industry own use.

Usage

find_transformation_end(
  .ctry_tbl,
  flow = IEATools::iea_cols$flow,
  non_specified = IEATools::non_specified_flows$non_specified,
  eiou = IEATools::tfc_compare_flows$energy_industry_own_use,
  coal_mines = IEATools::industry_flows$coal_mines
)

Arguments

.ctry_tbl

a country's IEA data frame

flow

See IEATools::iea_cols$flow.

non_specified

See IEATools::non_specified_flows.

eiou

See IEATools::tfc_compare_flows.

coal_mines

the name for coal mines in the flow column. Default is "Coal mines".

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 Transformation processes and Energy industry own use.

Value

a pair of integers representing the rows that straddle the split between Transformation processes and Energy industry own use The first integer is the last row of Transformation processes.


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