print.kpi | R Documentation |
Print method for kpi objects
## S3 method for class 'kpi'
print(x, table = TRUE, outlier = TRUE, ...)
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 |
output printed to the console
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.