Learn R Programming

desctable (version 0.3.0)

desc_output: desc_output

Description

Output a desctable to the desired target format

Usage

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

Value

The output object (or corresponding side effect)

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

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()