Render a segment breakdown xlsx tab for a segmentation model rack
Source:R/render_segment_breakdown.R
rack_render_segment_breakdown.RdExtracts the breakdowns summary with
rack_extract_segment_breakdown(), renders this summary as an xlsx
tab, appends it to a Workbook passed to wb parameter.
Examples
wb <- rack_render_segment_breakdown(example_seg_rack)
out_dir <- file.path(tempdir(), "g6tr.segmentation")
if (!dir.exists(out_dir)) dir.create(out_dir, recursive = TRUE)
openxlsx::saveWorkbook(
wb,
file.path(out_dir, "example_wb_segment_breakdowns.xlsx"),
overwrite = TRUE
)