cosm_sum {pubh} | R Documentation |
Cosmetics for summary tables Adds some cosmetics to tables of descriptive statistics generated by tbl_summary.
Description
Cosmetics for summary tables Adds some cosmetics to tables of descriptive statistics generated by tbl_summary.
Usage
cosm_sum(gt_tbl, pad = 3, bold = FALSE, head_label = "**Variable**")
Arguments
gt_tbl |
A table object generated by |
pad |
Numerical, padding above and bellow rows. |
bold |
Display labels in bold? |
head_label |
Character, label to be used as head for the variable's column. |
Details
Function cosm_sum
adds some cosmetics to tables generated by tbl_summary
, then converts the table as a huxtable
and sets proper alignment.
Value
A huxtable
.
Examples
require(dplyr, quietly = TRUE)
data(Oncho)
Oncho %>%
select(-id) %>%
tbl_summary() %>%
cosm_sum(bold = TRUE) %>%
theme_pubh(1)
[Package pubh version 1.3.2 Index]