simulate_ams_iiia_dataset.RdGenerates synthetic monitoring observations for AMS-III.A projects that replace synthetic nitrogen fertilizer with inoculants.
simulate_ams_iiia_dataset(n_farms = 10, n_periods = 3, start_year = 2024,
seed = NULL, baseline_n_mean = 90, replacement_fraction = 0.7,
legume_area_mean = 22, inoculant_rate_mean = 0.45,
fertilizer_production_ef = 0.004, fertilizer_field_ef = 0.01,
inoculant_ef = 0.002)Number of farms to simulate.
Number of monitoring periods per farm.
Calendar year of the first monitoring period.
Optional seed for reproducibility.
Mean baseline synthetic nitrogen use per period (kg N).
Expected fractional reduction in fertilizer use due to inoculants.
Mean legume area planted per farm (ha).
Mean inoculant application rate (kg/ha).
Emission factor for fertilizer production (tCO2e per kg N).
Direct soil emission factor (tCO2e per kg N).
Emission factor for inoculant production and application (tCO2e per kg).
Tibble containing simulated baseline, project, inoculant, and leakage data with monitoring metadata.
simulate_ams_iiia_dataset(n_farms = 3, n_periods = 2, seed = 42)
#> # A tibble: 6 × 16
#> farm_id monitoring_period year season baseline_synthetic_n_kg
#> <chr> <int> <dbl> <chr> <dbl>
#> 1 farm_01 1 2024 wet 115.
#> 2 farm_01 2 2024 dry 79.8
#> 3 farm_02 1 2024 wet 96.5
#> 4 farm_02 2 2024 dry 101.
#> 5 farm_03 1 2024 wet 97.3
#> 6 farm_03 2 2024 dry 88.1
#> # ℹ 11 more variables: baseline_production_ef_tco2_per_kg <dbl>,
#> # baseline_field_ef_tco2_per_kg <dbl>, project_synthetic_n_kg <dbl>,
#> # project_production_ef_tco2_per_kg <dbl>,
#> # project_field_ef_tco2_per_kg <dbl>, inoculant_rate_kg_per_ha <dbl>,
#> # legume_area_ha <dbl>, total_area_ha <dbl>, inoculant_ef_tco2_per_kg <dbl>,
#> # inoculant_registered <lgl>, leakage_emissions_tco2e <dbl>