param_summary_format | R Documentation |
This functions nicely formats a data frame of parameter summary statistics and is designed to be used with the param_summary() function.
param_summary_format(d, digits = getOption("digits"), pretty = FALSE)
d |
A data frame of the parameter summary statistics |
digits |
Number of digits to round to for printing |
pretty |
Logical value whether prettified values should be returned.
Defaults to |
A formatted data.table of summary statistics or a formated
vector (if pretty = TRUE
).
set.seed(1234)
xsum <- do.call(rbind, apply(matrix(rnorm(100*10), ncol = 10),
2, param_summary))
rownames(xsum) <- letters[1:10]
param_summary_format(xsum)
param_summary_format(xsum, pretty = TRUE)
rm(xsum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.