powered by
Adds a column with overall summary statistics to tables created by tbl_summary or tbl_svysummary.
tbl_summary
tbl_svysummary
add_overall(x, last, col_label)# S3 method for tbl_summary add_overall(x, last = FALSE, col_label = NULL)# S3 method for tbl_svysummary add_overall(x, last = FALSE, col_label = NULL)# S3 method for tbl_custom_summary add_overall(x, last = FALSE, col_label = NULL)
# S3 method for tbl_summary add_overall(x, last = FALSE, col_label = NULL)
# S3 method for tbl_svysummary add_overall(x, last = FALSE, col_label = NULL)
# S3 method for tbl_custom_summary add_overall(x, last = FALSE, col_label = NULL)
Object with class tbl_summary from the tbl_summary function or object with class tbl_svysummary from the tbl_svysummary function.
Logical indicator to display overall column last in table. Default is FALSE, which will display overall column first.
FALSE
String indicating the column label. Default is "**Overall**, N = {N}"
"**Overall**, N = {N}"
A tbl_summary object or a tbl_svysummary object
Other tbl_summary tools: add_ci(), add_n.tbl_summary(), add_p.tbl_summary(), add_q(), add_stat_label(), bold_italicize_labels_levels, inline_text.tbl_summary(), inline_text.tbl_survfit(), modify, separate_p_footnotes(), tbl_custom_summary(), tbl_merge(), tbl_split(), tbl_stack(), tbl_strata(), tbl_summary()
add_ci()
add_n.tbl_summary()
add_p.tbl_summary()
add_q()
add_stat_label()
bold_italicize_labels_levels
inline_text.tbl_summary()
inline_text.tbl_survfit()
modify
separate_p_footnotes()
tbl_custom_summary()
tbl_merge()
tbl_split()
tbl_stack()
tbl_strata()
tbl_summary()
Other tbl_svysummary tools: add_n.tbl_summary(), add_p.tbl_svysummary(), add_q(), add_stat_label(), modify, separate_p_footnotes(), tbl_merge(), tbl_split(), tbl_stack(), tbl_strata(), tbl_svysummary()
add_p.tbl_svysummary()
tbl_svysummary()
# NOT RUN { tbl_overall_ex <- trial[c("age", "grade", "trt")] %>% tbl_summary(by = trt) %>% add_overall() # }
Run the code above in your browser using DataLab