Implements Equation (2) of AMS-II.C by aggregating the monitored project energy consumption for the efficient technology.
calculate_project_energy_consumption(
project_data,
energy_col = "project_energy_mwh",
group_cols = NULL,
output_col = "project_energy_mwh"
)
Arguments
- project_data
A tibble containing project energy use in MWh.
- energy_col
Column name holding project energy values.
- group_cols
Optional grouping columns to retain in the output.
- output_col
Name of the resulting column storing project energy in MWh.
Value
A tibble with grouped project energy totals.
Examples
project <- tibble::tibble(site = c("A", "A", "B"),
project_energy_mwh = c(8, 16, 18))
calculate_project_energy_consumption(project, group_cols = "site")
#> # A tibble: 2 × 2
#> site project_energy_mwh
#> <chr> <dbl>
#> 1 A 24
#> 2 B 18