Generate synthetic baseline, project, leakage, and applicability datasets that are compatible with the AMS-III.F helper functions.

simulate_ams_iiif_dataset(n_sites = 3, n_periods = 4, seed = NULL)

Arguments

n_sites

Number of composting facilities to simulate.

n_periods

Number of monitoring periods per facility.

seed

Optional seed for reproducibility.

Value

List containing tibbles baseline, project, leakage, and applicability.

Examples

simulate_ams_iiif_dataset(n_sites = 2, n_periods = 3, seed = 123)
#> $baseline
#> # A tibble: 6 × 7
#>   site_id period waste_tonnes doc_fraction docf_fraction baseline_mcf_fraction
#>   <chr>    <int>        <dbl>        <dbl>         <dbl>                 <dbl>
#> 1 ST1          1         830.        0.152         0.518                 0.666
#> 2 ST1          2        1231.        0.174         0.507                 0.791
#> 3 ST1          3         927.        0.153         0.460                 0.778
#> 4 ST2          1        1306.        0.147         0.540                 0.739
#> 5 ST2          2        1352.        0.177         0.475                 0.728
#> 6 ST2          3         636.        0.147         0.454                 0.799
#> # ℹ 1 more variable: baseline_oxidation_fraction <dbl>
#> 
#> $project
#> # A tibble: 6 × 11
#>   site_id period composted_waste_tonnes doc_fraction docf_fraction
#>   <chr>    <int>                  <dbl>        <dbl>         <dbl>
#> 1 ST1          1                   809.        0.152         0.518
#> 2 ST1          2                  1190.        0.174         0.507
#> 3 ST1          3                   871.        0.153         0.460
#> 4 ST2          1                  1246.        0.147         0.540
#> 5 ST2          2                  1154.        0.177         0.475
#> 6 ST2          3                   581.        0.147         0.454
#> # ℹ 6 more variables: compost_mcf_fraction <dbl>,
#> #   compost_oxidation_fraction <dbl>, electricity_mwh <dbl>,
#> #   grid_ef_tco2_per_mwh <dbl>, diesel_litres <dbl>,
#> #   diesel_ef_tco2_per_litre <dbl>
#> 
#> $leakage
#> # A tibble: 6 × 9
#>   site_id period compost_transported_tonnes transport_distance_km
#>   <chr>    <int>                      <dbl>                 <dbl>
#> 1 ST1          1                       835.                 17.3 
#> 2 ST1          2                      1108.                  8.89
#> 3 ST1          3                       901.                 13.5 
#> 4 ST2          1                      1219.                 28.4 
#> 5 ST2          2                      1294.                 19.6 
#> 6 ST2          3                       631.                 32.6 
#> # ℹ 5 more variables: transport_ef_tco2_per_tkm <dbl>,
#> #   residual_waste_tonnes <dbl>, residual_waste_ef_tco2_per_tonne <dbl>,
#> #   displaced_fertiliser_tonnes <dbl>, fertiliser_ef_tco2_per_tonne <dbl>
#> 
#> $applicability
#> # A tibble: 2 × 11
#>   site_id waste_type    source_segregated contamination_fraction aeration_method
#>   <chr>   <chr>         <lgl>                              <dbl> <chr>          
#> 1 ST1     municipal or… TRUE                               0.138 forced aeration
#> 2 ST2     market waste  FALSE                              0.111 static pile    
#> # ℹ 6 more variables: retention_days <dbl>, leachate_managed <lgl>,
#> #   curing_phase <lgl>, organic_samples_per_year <int>,
#> #   temperature_checks_per_week <int>, moisture_checks_per_week <int>
#>