fix_AUS_bfg: Fix Australia Blast furnace gas for 2010-2020

View source: R/fixes.R

fix_AUS_bfgR Documentation

Fix Australia Blast furnace gas for 2010–2020

Description

Australia's Blast furnaces have an undesirable characteristic that leads to singular matrices: From 2013 onward, the production of Blast furnace gas by Blast furnaces is consumed only by Blast furnaces. No other industry or energy production machine consumes Blast furnace gas. In fact, the problem is deeper, starting in 2010, the Iron and steel industry consumes no Blast furnace gas, in apparent contradiction to the IEA's own policies for reporting Blast furnace gas consumption. This function fixes the Blast furnace gas data for Australia for the 2010–2020 timeframe.

Usage

fix_AUS_bfg(
  .tidy_iea_df,
  country = IEATools::iea_cols$country,
  year = IEATools::iea_cols$year,
  e_dot = IEATools::iea_cols$e_dot
)

Arguments

.tidy_iea_df

IEA data frame produced by load_tidy_iea_df().

country, year, e_dot

See IEATools::iea_cols.

Details

The fix involves ensuring that the Iron and steel industry always consumes Blast furnace gas, according to the IEA's assumed efficiency of 40%. This function makes use of the Fixed_AUS_bfg data frame.

Value

.tidy_iea_df with improved Australia Blast furnace gas.

Examples

load_tidy_iea_df() |>
  dplyr::filter(Country == "ZAF", Year == 1971) |> 
  dplyr::mutate(
    # Pretend that ZAF is Australia.
    Country = "AUS", 
    # And that 1971 is 2013
    Year = 2013
  ) |> 
  # This will change Blast furnace gas.
  fix_AUS_bfg()

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