Skip to contents

Stable accessor for scorecard aggregates held in a disclosure bundle.

Usage

bundle_score(bundle, what = "composite", year = NULL)

Arguments

bundle

A minesdg_disclosure_bundle.

what

"composite" (default), "grade", or "goal_<n>" (e.g. "goal_8").

year

Optional year; defaults to the bundle's reporting year.

Value

A numeric score (or character grade), or NA.

Examples

b <- compile_site_disclosures(demo_mine_sites, site_id = "CU-ATAC",
                              years = 2024)
bundle_score(b)
#> [1] 66.8
bundle_score(b, what = "goal_8")
#> [1] 86.3