formattable.summary.margarita.sim.rl: Create an HTML table for outputing via Rmd.

Description Usage Arguments Note

View source: R/formattable.sim.R

Description

Create an HTML table for outputing via Rmd.

Usage

1
2
## S3 method for class 'summary.margarita.sim.rl'
formattable(data, digits = 2, backgroundColor = NULL, debug = FALSE)

Arguments

data

The output of summary.margarita.sim.rl.

digits

The number of digits to round numbers to. Defaults to digits=2.

backgroundColor

Rows are colored according to treatment group. Defaults to using shadesOfGrey to select the correct number of shades of grey.

debug

If debug = TRUE, the list of formatters is returned for inspection.

Note

The returned object (if debug = FALSE) is a formattable object and, if desired, can be turned into a DT::datatable via formattable::as.datatable.


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.