Skip to contents

Takes measures dataframe-column of a rack, drops several unuseful columns. Renders the measures dataframe as an xlsx tab. Appends this tab to a Workbook passed to wb parameter.

Usage

rack_render_measures(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.

Details

Measures with the following names are automatically hidden: niter, cpu, cpu.all, nrun.

Examples

wb <- rack_render_measures(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_measures.xlsx"),
  overwrite = TRUE
)