Convert a table1 object to kabelExtra.

t1kable(x, booktabs = TRUE, ..., format, align, bold.headers = TRUE)

Arguments

x

An object returned by table1.

booktabs

Passed to kbl (default TRUE).

...

Other options passed to kbl.

format

Passed to kbl (optional).

align

Passed to kbl (optional). The default is to left align the labels (first column) and center everything else.

bold.headers

Should the column headers be bolded?

Value

A kabelExtra object.

Note

The kableExtra package needs to be installed for this to work.