Learn R Programming

gtsummary (version 0.1.0)

add_overall: Adds a column with overall summary statistics to an existing fmt_table1 object where descriptive statistics are split by a variable

Description

The function assumes the DEFAULT headers are in use. Only modify header rows after Overall column has been added.

Usage

add_overall(x, last = FALSE)

Arguments

x

object with class fmt_table1 from the fmt_table1 function

last

logical indicator to include overall column last. Default is FALSE

Examples

Run this code
# NOT RUN {
trial %>% fmt_table1(by = "trt") %>% add_overall()
# }

Run the code above in your browser using DataLab