aggregate_monitoring_periods.RdSummarises simulated or observed electricity supply data for each monitoring period using the AMS-I.D calculation helpers.
aggregate_monitoring_periods(supply_data, monitoring_cols = c("year", "month"), group_cols = "grid_id", electricity_col = "electricity_mwh", baseline_factor_col = "baseline_emission_factor", project_col = "project_emissions_tco2e")Tibble containing monitoring observations, including the specified grouping and monitoring columns.
Character vector specifying the columns that define a monitoring period.
Character vector specifying entity-level identifiers.
Name of the column with electricity supplied for each observation in MWh.
Name of the column storing the baseline emission factor.
Name of the project emissions column aggregated across the period.
A tibble aggregated by entity and monitoring period with baseline electricity, baseline emissions, project emissions, and emission reductions.
data <- simulate_ams_id_dataset(n_grids = 2, n_periods = 3)
aggregate_monitoring_periods(data)
#> Error: `useful_energy_col` must be present in `thermal_data`.