Estimates crop residue dry matter from production and area using an ensemble
of an IPCC 2019 linear model and a bio_coefs residue:product ratio. The
irrigation and modern-variety adjustments activate only when their driver
columns are present in x.
Arguments
- x
A tibble with
item_prod_code,production_t(fresh matter) andarea_ha. Optionalwater_regimeenables the irrigation adjustment; optionalyearplusregion_hanppenable the modern-variety adjustment.- method
Residue method:
"ensemble"(default, weighted IPCC + ratio),"ipcc"(IPCC linear only) or"ratio"(bio_coefsratio only).- weights
Named list;
w_ipccis the IPCC weight in the ensemble (0-1, default 0.5), used only whenmethod = "ensemble".
Examples
calculate_crop_residues(
tibble::tibble(item_prod_code = "15", production_t = 100, area_ha = 40)
)
#> # A tibble: 1 × 7
#> item_prod_code production_t area_ha product_dm_t yield_dm_t_ha residue_dm_t
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 15 100 40 87.9 2.20 136.
#> # ℹ 1 more variable: method_residue <chr>
