Skip to contents

Given a country's IEA extended energy balance data frame, find the row numbers that represent the transition between the Energy industry own use and Losses (a TFC compare flow).

Usage

find_eiou_end(
  .ctry_tbl,
  flow = IEATools::iea_cols$flow,
  non_specified = IEATools::non_specified_flows$non_specified,
  losses = IEATools::tfc_compare_flows$losses
)

Arguments

.ctry_tbl

a country's IEA data frame

flow

See IEATools::iea_cols$flow.

non_specified

See IEATools::non_specified_flows.

losses

See IEATools::tfc_compare_flows.

Value

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

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.