display.performance_model | R Documentation |
Prints tables (i.e. data frame) in different output formats.
## S3 method for class 'performance_model'
display(object, format = "markdown", digits = 2, caption = NULL, ...)
## S3 method for class 'performance_model'
print_md(
x,
digits = 2,
caption = "Indices of model performance",
layout = "horizontal",
...
)
## S3 method for class 'compare_performance'
print_md(
x,
digits = 2,
caption = "Comparison of Model Performance Indices",
layout = "horizontal",
...
)
object , x |
An object returned by one of the package's function, for
example |
format |
String, indicating the output format. Can be |
digits |
Number of decimal places. |
caption |
Table caption as string. If |
... |
Currently not used. |
layout |
Table layout (can be either |
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.
easystats_display_format
: options(easystats_display_format = <value>)
will set the default format for the display()
methods. Can be one of
"markdown"
, "html"
, or "tt"
.
model <- lm(mpg ~ wt + cyl, data = mtcars)
mp <- model_performance(model)
display(mp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.