Skip to contents

Use rack_put_feature_counts() to put attribute counts tables to a rack.

Usage

rack_render_feature_counts(rack, wb = NULL, quiet = FALSE)

Arguments

rack

A model rack to calculate summaries on.

wb

Workbook object to attach the rendered summary tab(s) to. If NULL, the default, an empty Workbook object will be initialized to contain the new tab(s).

quiet

Logical. If TRUE, suppresses warnings about missing required columns. Default is FALSE.

Examples

wb <- rack_render_feature_counts(example_seg_rack_extended)

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_attr_counts.xlsx"),
  overwrite = TRUE
)