powered by
The function assumes the DEFAULT header are in use. Only modify header rows after all columns has been added.
add_n(x, missing = FALSE, last = FALSE)
object with class fmt_table1 from the fmt_table1 function
fmt_table1
logical argument indicating whether to print N (missing = FALSE), or N missing (missing = TRUE). Default is FALSE
missing = FALSE
missing = TRUE
FALSE
logical indicator to include overall column last. Default is FALSE
# NOT RUN { trial %>% fmt_table1(by = "trt") %>% add_n() # }
Run the code above in your browser using DataLab