Skip to contents

Given a country's IEA extended energy balance data frame, find the row numbers that represent the transition between the first TFC Compare section and Transformation processes.

Usage

find_transformation_start(
  .ctry_tbl,
  flow = IEATools::iea_cols$flow,
  transformation_processes = IEATools::tfc_compare_flows$transformation_processes,
  statistical_differences = IEATools::tfc_compare_flows$statistical_differences,
  mapep = IEATools::transformation_processes$main_activity_producer_electricity_plants
)

Arguments

.ctry_tbl

a country's IEA data frame

flow

See IEATools::iea_cols.

transformation_processes, statistical_differences

See IEATools::tfc_compare_flows.

mapep

See IEATools::transformation_processes.

Value

a pair of integers representing the rows that straddle the split between the TFC compare and Transformation processes flows. The second integer is the first row of Transformation processes.

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 TFC compare and Transformation processes.