Generates a tidy dataset representing electricity supplied by renewable generation assets to a captive mini-grid.

simulate_ams_id_dataset(n_grids = 10, n_periods = 12, start_year = 2023, start_month = 1, mean_supply_mwh = 18000, sd_supply_mwh = 2500, baseline_emission_factor = 0.7, project_emission_factor = 0.02)

Arguments

n_grids

Number of mini-grids to simulate.

n_periods

Number of monitoring periods per mini-grid.

start_year

Calendar year for the first monitoring period.

start_month

Calendar month (1-12) for the first monitoring period.

mean_supply_mwh

Mean annual electricity supplied per mini-grid in MWh.

sd_supply_mwh

Standard deviation of annual electricity supplied in MWh.

baseline_emission_factor

Baseline emission factor in tCO2e/MWh.

project_emission_factor

Project emission factor in tCO2e/MWh.

Value

A tibble containing grid identifiers, monitoring metadata, electricity supply, and emissions.

Examples

simulate_ams_id_dataset(n_grids = 5)
#> # A tibble: 60 × 15
#>    grid_id monitoring_period  year month   day monitoring_date monitoring_label
#>    <chr>               <int> <dbl> <dbl> <int> <date>          <chr>           
#>  1 grid_1                  1  2023     1    23 2023-01-23      2023-01         
#>  2 grid_1                  2  2023     2    11 2023-02-11      2023-02         
#>  3 grid_1                  3  2023     3    11 2023-03-11      2023-03         
#>  4 grid_1                  4  2023     4     5 2023-04-05      2023-04         
#>  5 grid_1                  5  2023     5    21 2023-05-21      2023-05         
#>  6 grid_1                  6  2023     6    12 2023-06-12      2023-06         
#>  7 grid_1                  7  2023     7     2 2023-07-02      2023-07         
#>  8 grid_1                  8  2023     8     6 2023-08-06      2023-08         
#>  9 grid_1                  9  2023     9     4 2023-09-04      2023-09         
#> 10 grid_1                 10  2023    10    16 2023-10-16      2023-10         
#> # ℹ 50 more rows
#> # ℹ 8 more variables: electricity_mwh <dbl>, baseline_emission_factor <dbl>,
#> #   project_emission_factor <dbl>, baseline_electricity_mwh <dbl>,
#> #   project_electricity_mwh <dbl>, baseline_emissions_tco2e <dbl>,
#> #   project_emissions_tco2e <dbl>, emission_reductions_tco2e <dbl>