Takes an ato_tbl or data frame of ACCU project records (from
cer_accu_projects()), joins the method integrity scorecard,
and aggregates by integrity tier. Emits a warning if contested
or under-review methods contribute materially to the total so
the analyst cannot silently aggregate them into a single
headline figure.
Arguments
- x
A
cer_tblor data frame with columnsmethodand a numeric issuance column.- value_col
Column to sum. Default
NULLuses the register'saccus_total_units_issuedcolumn (oraccus_issued, if that is the onexhas).- warn_contested_pct
Warn if the contested tier exceeds this share of the total. Default
0.05(5%).
Value
A data frame with one row per integrity tier and
columns integrity_tier, projects, <value_col>_sum and
share_pct. Register methods are assigned to a tier through the
scorecard's register_pattern; methods it does not cover are
"unclassified".
Examples
# \donttest{
op <- options(cer.cache_dir = tempdir())
try({
p <- cer_accu_projects()
cer_accu_aggregate(p)
})
options(op)
# }