Coerce an object to a disclosure bundle
as_disclosure_bundle.RdGeneric used by the report generators so that users may pass either a
prepared compile_site_disclosures bundle or a raw site
data.frame.
Arguments
- x
A
minesdg_disclosure_bundleor a site data.frame.- ...
Passed on to
compile_site_disclosuresfor data.frame input.
Examples
b <- as_disclosure_bundle(demo_mine_sites, site_id = "AU-KALG",
years = 2023:2024)
class(b)
#> [1] "minesdg_disclosure_bundle"