Generate a formatted flextable from a tableby object

format_tableby(tbl, bold_var = FALSE, bold_p = T, pvals = "p value", ...)

Arguments

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

Examples

if (FALSE) { tableby(arm ~ ., data = mockstudy, digits = 2) %>% format_tableby() }