Print tables in different output formats
Prints tables (i.e. data frame) in different output formats.
print_md()
is a alias for display(format = "markdown")
.
## S3 method for class 'performance_model' display(object, format = "markdown", digits = 2, ...) ## S3 method for class 'performance_model' print_md(x, digits = 2, ...)
object, x |
An object returned by |
format |
String, indicating the output format. Currently, only
|
digits |
Number of decimal places. |
... |
Currently not used. |
display()
is useful when the table-output from functions,
which is usually printed as formatted text-table to console, should
be formatted for pretty table-rendering in markdown documents, or if
knitted from rmarkdown to PDF or Word files. See
vignette
for examples.
A character vector. If format = "markdown"
, the return value
will be a character vector in markdown-table format.
model <- lm(mpg ~ wt + cyl, data = mtcars) mp <- model_performance(model) display(mp)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.