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 'parameters_model' display( object, format = "markdown", pretty_names = TRUE, split_components = TRUE, select = NULL, caption = NULL, subtitle = NULL, footer = NULL, align = NULL, digits = 2, ci_digits = 2, p_digits = 3, footer_digits = 3, ci_brackets = c("(", ")"), show_sigma = FALSE, show_formula = FALSE, zap_small = FALSE, verbose = TRUE, ... ) ## S3 method for class 'parameters_stan' display( object, split_components = TRUE, select = NULL, format = "markdown", ... ) ## S3 method for class 'parameters_sem' display( object, format = "markdown", digits = 2, ci_digits = 2, p_digits = 3, ci_brackets = c("(", ")"), ... ) ## S3 method for class 'parameters_efa_summary' display(object, format = "markdown", digits = 3, ...) ## S3 method for class 'parameters_efa' display( object, format = "markdown", digits = 2, sort = FALSE, threshold = NULL, labels = NULL, ... ) ## S3 method for class 'equivalence_test_lm' display(object, format = "markdown", digits = 2, ...) ## S3 method for class 'parameters_model' format( x, pretty_names = TRUE, split_components = TRUE, select = NULL, digits = 2, ci_digits = 2, p_digits = 3, ci_width = NULL, ci_brackets = NULL, zap_small = FALSE, format = NULL, ... ) ## S3 method for class 'parameters_model' print_html( x, pretty_names = TRUE, split_components = TRUE, select = NULL, caption = NULL, subtitle = NULL, footer = NULL, align = NULL, digits = 2, ci_digits = 2, p_digits = 3, footer_digits = 3, ci_brackets = c("(", ")"), show_sigma = FALSE, show_formula = FALSE, zap_small = FALSE, verbose = TRUE, ... ) ## S3 method for class 'parameters_model' print_md( x, pretty_names = TRUE, split_components = TRUE, select = NULL, caption = NULL, subtitle = NULL, footer = NULL, align = NULL, digits = 2, ci_digits = 2, p_digits = 3, footer_digits = 3, ci_brackets = c("(", ")"), show_sigma = FALSE, show_formula = FALSE, zap_small = FALSE, verbose = TRUE, ... )
object |
An object returned by |
format |
String, indicating the output format. Can be |
pretty_names |
Return "pretty" (i.e. more human readable) parameter names. |
split_components |
Logical, if |
select |
Character vector (or numeric index) of column names that should
be printed. If |
caption |
Table caption as string. If |
subtitle |
Table title (same as caption) and subtitle, as strings. If |
footer |
Table footer, as string. For markdown-formatted tables, table footers, due to the limitation in markdown rendering, are actually just a new text line under the table. |
align |
Only applies to HTML tables. May be one of |
digits |
Number of decimal places for numeric values (except confidence intervals and p-values). |
ci_digits |
Number of decimal places for confidence intervals. |
p_digits |
Number of decimal places for p-values. May also be |
footer_digits |
Number of decimal places for values in the footer summary. |
ci_brackets |
Logical, if |
show_sigma |
Logical, if |
show_formula |
Logical, if |
zap_small |
Logical, if |
verbose |
Toggle messages and warnings. |
... |
Arguments passed to or from other methods. |
sort |
Sort the loadings. |
threshold |
A value between 0 and 1 indicates which (absolute) values
from the loadings should be removed. An integer higher than 1 indicates the
n strongest loadings to retain. Can also be |
labels |
A character vector containing labels to be added to the loadings data. Usually, the question related to the item. |
x |
An object returned by |
ci_width |
Minimum width of the returned string for confidence
intervals. If not |
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.
If format = "markdown"
, the return value will be a character
vector in markdown-table format. If format = "html"
, an object of
class gt_tbl
.
model <- lm(mpg ~ wt + cyl, data = mtcars) mp <- model_parameters(model) display(mp)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.