Read a KPI value from a disclosure bundle
bundle_kpi.RdStable accessor used by framework mappers and report templates.
Arguments
- bundle
A
minesdg_disclosure_bundle.- kpi_id
A single KPI id from
mining_kpi_registry.- year
Optional year; defaults to the bundle's reporting year.
Examples
b <- compile_site_disclosures(demo_mine_sites, site_id = "CU-ATAC",
years = 2024)
bundle_kpi(b, "trifr")
#> [1] 2.976