powered by
Rather than simply printing the summary statistics, with the use of add_stat_label(), a column labeling the summary statistics is added.
add_stat_label()
add_stat_label(x, iqr = TRUE)
object with class fmt_table1 from the fmt_table1 function
fmt_table1
logical indicator whether 'q1, q2' and 'p25, p75' should resolve to 'IQR'. Default is TRUE
TRUE
# NOT RUN { mtcars %>% fmt_table1() %>% add_stat_label() mtcars %>% fmt_table1(by = "am") %>% add_stat_label(iqr = FALSE) # }
Run the code above in your browser using DataLab