View source: R/format_tableby.R
format_tableby | R Documentation |
Generate a formatted flextable from a tableby object
format_tableby(tbl, bold_var = FALSE, bold_p = T, pvals = "p value", ...)
tbl |
A tableby object |
bold_var |
Bold variable names in the first column? |
bold_p |
(Logical) If TRUE, p values less than 0.05 will be bolded. |
pvals |
A character vector of p values to format |
... |
Additional arguments to pass to format_flextable |
## Not run:
tableby(arm ~ ., data = mockstudy, digits = 2) %>% format_tableby()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.