cer_accu_aggregate: Integrity-weighted ACCU aggregation

View source: R/accu_integrity.R

cer_accu_aggregateR Documentation

Integrity-weighted ACCU aggregation

Description

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.

Usage

cer_accu_aggregate(x, value_col = NULL, warn_contested_pct = 0.05)

Arguments

x

A cer_tbl or data frame with columns method and a numeric issuance column.

value_col

Column to sum. Default NULL uses the register's accus_total_units_issued column (or accus_issued, if that is the one x has).

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".

See Also

Other accu: cer_accu_contracts(), cer_accu_issuances(), cer_accu_methods(), cer_accu_projects(), cer_accu_relinquishments(), cer_method_determination(), cer_method_integrity()

Examples


op <- options(cer.cache_dir = tempdir())
try({
  p <- cer_accu_projects()
  cer_accu_aggregate(p)
})
options(op)


cer documentation built on Dec. 3, 2026, 1:06 a.m.