Skip to contents

Raw fields are provenance-tagged copies of validated user input; they are never recomputed by the reporting layer.

Usage

bundle_raw(bundle, field, year = NULL)

Arguments

bundle

A minesdg_disclosure_bundle.

field

A single raw field name (a numeric column of the input site data, e.g. "energy_gj").

year

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

Value

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

Examples

b <- compile_site_disclosures(demo_mine_sites, site_id = "CU-ATAC",
                              years = 2024)
bundle_raw(b, "ghg_scope1_t")
#> [1] 640035