Post-process results data.

postprocess_data(
  dat,
  cols = grep("^w", names(dat), value = TRUE),
  agg_var = NULL,
  agg_fun = mean
)

Arguments

dat

Summary statistics data.

cols

Numeric columns to plot in the heatmap.

agg_var

Variable to aggregate data by. Set to NULL to skip this step.

agg_fun

Function to aggregate cols with.

Value

(Aggregated) data.table

Examples

dat <- ThreeWayTest::data_matrix_final
dat2 <- postprocess_data(dat = dat)