show_table: Show table

View source: R/utils_print.R

show_tableR Documentation

Show table

Description

Show table

Usage

show_table(
  x,
  spacing = 2L,
  pad = 2L,
  formatter = highlight,
  output_type = NULL
)

Arguments

x

table.

spacing

Integer: Number of spaces between columns.

pad

Integer: Pad output with this many spaces.

formatter

Function: Formatting function applied to table values.

output_type

Character ("ansi", "html", "plain") or NULL: Output type. If NULL, resolved via get_output_type().

Value

Character: formatted string.

Author(s)

EDG

Examples

tbl <- table(
  Predicted = c("a", "b", "a", "b", "a"),
  Reference = c("a", "a", "b", "b", "a")
)
cat(show_table(tbl))

rtemis.core documentation built on Sept. 20, 2026, 9:06 a.m.