Check that the app's the input data has matching land uses and correct carbon pools and associated factors.
Source:R/fct_make_formula.R
fct_make_formula.Rd
The expected input carbon stock table for the tool contains carbon values of different carbon pools coded: - AGB for aboveground biomass, - BGB or RS (Root-to-Shoot ratio) for the belowground biomass, - DW for deadwood, - LI for litter and - SOC for soil organic carbon. All pools can be expressed in tons of Carbon (C) or CO2. AGB and BGB can also be expressed in ton of dry matter (DM), then a carbon fraction (CF) is also needed.
Value
A character value with the formula for calculating total carbon stock for a specific land use.
Examples
library(mocaredd)
library(readxl)
library(dplyr)
cs <- read_xlsx(
path = system.file("extdata/example1.xlsx", package = "mocaredd"),
sheet = "c_stocks",
na = "NA"
)
c_lu <- cs |> filter(lu_id == "dg_ev_wet_closed")
c_check <- fct_check_pool(.c_lu = c_lu, .c_unit = "C", .c_fraction = NA)
fct_make_formula(.c_check = c_check, .c_unit = "C")
#> [1] "DG_ratio"