Learn R Programming

gtsummary (version 1.2.0)

add_stat_label: Add statistic labels column

Description

Adds a column with labels describing the summary statistics presented for each variable in the tbl_summary table.

Usage

add_stat_label(x)

Arguments

x

Object with class tbl_summary from the tbl_summary function

Value

A tbl_summary object

Example Output

See Also

Other tbl_summary tools: add_n, add_overall, add_p, add_q.tbl_summary, bold_italicize_labels_levels, bold_p.tbl_summary, inline_text.tbl_summary, modify_header, sort_p.tbl_summary, tbl_summary

Examples

Run this code
# NOT RUN {
tbl_stat_ex <-
  trial %>%
  dplyr::select(trt, age, grade, response) %>%
  tbl_summary() %>%
  add_stat_label()
# }

Run the code above in your browser using DataLab