Aggregate per-theme statistics for report
Source:R/16_report_helpers.R
aggregate_theme_statistics.RdAggregate per-theme statistics for report
Usage
aggregate_theme_statistics(
data,
theme_set,
consolidated = NULL,
quotes_per_theme = 3L,
config = NULL,
metric_interpretation = NULL
)Arguments
- data
tibble with theme_membership_* or emerged_themes columns
- theme_set
ThemeSet object
- consolidated
ConsolidatedCodes list (or NULL)
- quotes_per_theme
Integer; number of representative quotes to select per theme. Wired through from
config$analysis$themes$quotes_per_theme; defaults to 3.- config
Optional ThematicConfig or config list. When supplied,
config$data$column_mappings$metric_columnsis used as the explicit metric allowlist for the per-subtheme paper-style tables When NULL or empty, metrics auto-detect from the data via.detect_metric_columns.- metric_interpretation
Optional
MetricInterpretation(from the Methodology Assistant), threaded to.compute_subtheme_statisticsso each interpreted column additionally gets the AI's requested primitives. NULL (legacy / Mode 1) -> only the legacy Median(MAD)+Mean(SD) battery.