lyt <- basic_table() %>%
analyze("AGE", afun = mean)
tbl <- build_table(lyt, DM)
tbl
lyt2 <- basic_table(title = "Title of table",
subtitles = c("a number", "of subtitles"),
main_footer = "test footer",
prov_footer = paste("test.R program, executed at",
Sys.time())) %>%
split_cols_by("ARM") %>%
analyze("AGE", mean)
tbl2 <- build_table(lyt2, DM)
tbl2
lyt3 <- basic_table(show_colcounts = TRUE,
colcount_format = "xx. (xx.%)") %>%
split_cols_by("ARM")
Run the code above in your browser using DataLab