format_tableby: Generate a formatted flextable from a tableby object

View source: R/format_tableby.R

format_tablebyR Documentation

Generate a formatted flextable from a tableby object

Description

Generate a formatted flextable from a tableby object

Usage

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

## Not run: 
tableby(arm ~ ., data = mockstudy, digits = 2) %>% format_tableby()

## End(Not run)


overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.