Skip to contents

Output a desctable to the desired target format

Usage

desc_output(desctable, target = c("df", "pander", "DT"), digits = 2, ...)

Arguments

desctable

The desctable to output

target

The desired target. One of "df", "pander", or "DT".

digits

The number of digits to display. The p values will be simplified under 1E-digits

...

Other arguments to pass to data.frame, pander::pander, or DT::datatable

Value

The output object (or corresponding side effect)

Details

Output a simple or grouped desctable to a different formats. Currently available formats are

  • data.frame ("df")

  • pander ("pander")

  • datatable ("DT")

All numerical values will be rounded to the digits argument. If statistical tests are presents, p values below 1E-digits will be replaced with "< 1E-digits" (eg. "< 0.01" for values below 0.01 when digits = 2)

See also

datatable

pander

Other desc_table core functions: desc_table(), desc_tests()