print.kpi: Print method for kpi objects

View source: R/print.R

print.kpiR Documentation

Print method for kpi objects

Description

Print method for kpi objects

Usage

## S3 method for class 'kpi'
print(x, table = TRUE, outlier = TRUE, ...)

Arguments

x

kpi object

table

logical, whether to add a table stats by grouping variable(s) to the output

outlier

logical, whether to add a table of outliers to the output

...

not currently used

Value

output printed to the console

Examples

kpi <- mtcars %>%
  mutate(cylgt4 = cyl > 4) %>%
  kpi(var = "mpg", breakpoints = c(0, 22, 50), by = c("am", "cyl"), txt = "MPG",
      kpi_fn = kpi_fn_median)
print(kpi, table = TRUE, outlier = FALSE)

CTU-Bern/kpitools documentation built on Aug. 19, 2024, 4:58 a.m.