Export per-theme paper-style subtheme-summary CSVs
Source:R/17_report.R
export_theme_subtheme_summary_csvs.RdComplement to export_theme_entry_csvs: for each theme, writes
a CSV with ONE ROW PER REAL SUBTHEME with paper-style columns
(Subtheme name, description, n, Median+MAD + Mean+SD per auto-
detected metric, examples of comments tagged with metric values).
Arguments
- theme_stats
Per-theme stats list from
aggregate_theme_statistics()(must carrysubtheme_stats+metric_cols).- output_dir
Run directory.
- methodology_mode
Optional methodology mode for AC4 stamping.
Details
Output structure:
theme_summaries/<safe_theme_name>.csv– one per theme with non-empty subtheme_statstheme_summaries/all_subthemes.csv– master with theme_name + subtheme rows from every theme
Themes with no real subthemes (only the virtual NA-named wrapper) OR with empty subtheme_stats are skipped – they're already covered by the per-entry CSVs and the theme card.