add_n: Adds a column with N (or N missing) for each variable

Description Usage Arguments Examples

Description

The function assumes the DEFAULT header are in use. Only modify header rows after all columns has been added.

Usage

1
add_n(x, missing = FALSE, last = FALSE)

Arguments

x

object with class fmt_table1 from the fmt_table1 function

missing

logical argument indicating whether to print N (missing = FALSE), or N missing (missing = TRUE). Default is FALSE

last

logical indicator to include overall column last. Default is FALSE

Examples

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

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