Apply the same compact styling available from gtsummary::theme_gtsummary_compact() to any gt, flextable, huxtable, or knitr::kable() table. knitr::kable() stlying uses the kableExtra package

style_tbl_compact(data)

Arguments

data

a gt, flextable, huxtable, or knitr::kable() table.

Example Output

Example 1

Examples

style_tbl_compact_ex1 <-
  head(trial) %>%
  gt::gt() %>%
  style_tbl_compact()