add_overall: Adds a column with overall summary statistics to an existing...

Description Usage Arguments Examples

Description

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

Usage

1
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

1
trial %>% fmt_table1(by = "trt") %>% add_overall()

ddsjoberg/gtsummary-v0.1 documentation built on June 4, 2019, 7:48 a.m.