non_renewable_biomass_iig.RdApplies the fraction of non-renewable biomass to monitored baseline or project biomass consumption and aggregates the results by the requested grouping structure. The helpers implement Equation (1) of AMS-II.G for the baseline and an analogous expression for the project scenario.
calculate_baseline_non_renewable_biomass_iig(
baseline_data,
consumption_col = "baseline_biomass_consumption_tonnes",
fraction_col = "baseline_non_renewable_fraction",
group_cols = NULL,
output_col = "baseline_non_renewable_biomass_tonnes"
)
calculate_project_non_renewable_biomass_iig(
project_data,
project_consumption_col = "project_biomass_consumption_tonnes",
project_fraction_col = "project_non_renewable_fraction",
group_cols = NULL,
output_col = "project_non_renewable_biomass_tonnes"
)Tibble containing baseline biomass monitoring data.
Column storing baseline biomass consumption (tonnes).
Column storing the baseline fraction of biomass that is non-renewable.
Optional character vector of grouping columns used to aggregate results.
Name of the output column storing non-renewable biomass totals.
Tibble containing project biomass monitoring data.
Column storing project biomass consumption (tonnes).
Column storing the project fraction of biomass that is non-renewable.
A tibble with one row per grouping structure (or a single aggregated row when group_cols is NULL) containing non-renewable biomass totals.
baseline <- tibble::tibble(
site_id = c("A", "A", "B"),
baseline_biomass_consumption_tonnes = c(10, 6, 12),
baseline_non_renewable_fraction = c(0.8, 0.75, 0.9)
)
calculate_baseline_non_renewable_biomass_iig(baseline, group_cols = "site_id")
#> # A tibble: 2 × 2
#> site_id baseline_non_renewable_biomass_tonnes
#> <chr> <dbl>
#> 1 A 12.5
#> 2 B 10.8
project <- tibble::tibble(
site_id = c("A", "B"),
project_biomass_consumption_tonnes = c(6, 7),
project_non_renewable_fraction = c(0.4, 0.35)
)
calculate_project_non_renewable_biomass_iig(project, group_cols = "site_id")
#> # A tibble: 2 × 2
#> site_id project_non_renewable_biomass_tonnes
#> <chr> <dbl>
#> 1 A 2.4
#> 2 B 2.45