Skip to contents

Stable accessor used by framework mappers and report templates.

Usage

bundle_kpi(bundle, kpi_id, year = NULL)

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.

Value

A single numeric value, or NA if the KPI is unavailable.

Examples

b <- compile_site_disclosures(demo_mine_sites, site_id = "CU-ATAC",
                              years = 2024)
bundle_kpi(b, "trifr")
#> [1] 2.976