This meta-function orchestrates the numbered equations of AMS-II.E to compute annual emission reductions for building energy efficiency and fuel switching projects.

estimate_emission_reductions_ams_iie(
  baseline_data,
  project_data,
  leakage_data = NULL,
  group_cols = NULL,
  baseline_args = list(),
  project_args = list(),
  leakage_args = list(),
  reduction_args = list()
)

Arguments

baseline_data

Tidy baseline dataset describing counterfactual building energy use.

project_data

Tidy project dataset describing monitored building energy use.

leakage_data

Optional tibble of leakage components with the same grouping structure as the baseline/project data.

group_cols

Character vector of grouping columns common to the supplied datasets.

baseline_args

Optional list of additional arguments passed to calculate_baseline_building_emissions.

project_args

Optional list of additional arguments passed to calculate_project_building_emissions.

leakage_args

Optional list of additional arguments passed to calculate_leakage_emissions.

reduction_args

Optional list of arguments forwarded to estimate_emission_reductions. group_cols is added automatically.

Value

A tibble containing baseline, project, leakage, and emission reduction totals by the requested grouping structure.

Examples

baseline <- tibble::tibble(
  building_id = "Office_A",
  baseline_thermal_energy_gj = 420,
  baseline_thermal_emission_factor_tco2_per_gj = 0.056,
  baseline_electricity_mwh = 120,
  baseline_electricity_emission_factor_tco2_per_mwh = 0.62
)
project <- tibble::tibble(
  building_id = "Office_A",
  project_thermal_energy_gj = 210,
  project_thermal_emission_factor_tco2_per_gj = 0.034,
  project_electricity_mwh = 86,
  project_electricity_emission_factor_tco2_per_mwh = 0.62
)
estimate_emission_reductions_ams_iie(baseline, project, group_cols = "building_id")
#> # A tibble: 1 × 4
#>   building_id emission_reductions_tco2e baseline_emissions_tco2e
#>   <chr>                           <dbl>                    <dbl>
#> 1 Office_A                         37.5                     97.9
#> # ℹ 1 more variable: project_emissions_tco2e <dbl>