# NOT RUN {
t1 <- fmt_table1(mtcars)
t2 <- fmt_table1(mtcars, by = "am")
t3 <- fmt_table1(mtcars, by = "am") %>% add_overall()
inline_text(t1, "mpg") # mpg
inline_text(t1, "cyl:4") # cyl=4
inline_text(t2, "mpg:1") # mpg with am=1
inline_text(t2, "cyl:4:1") # cyl=4 with am=1
inline_text(t3, "mpg", overall = TRUE) # overall mpg summary
# }
Run the code above in your browser using DataLab