add_existing_table {rtables} | R Documentation |
Add an already calculated table to the layout
Description
Add an already calculated table to the layout
Usage
add_existing_table(lyt, tt, indent_mod = 0)
Arguments
lyt |
( |
tt |
( |
indent_mod |
( |
Value
A PreDataTableLayouts
object suitable for passing to further layouting functions, and to build_table()
.
Author(s)
Gabriel Becker
Examples
lyt1 <- basic_table() %>%
split_cols_by("ARM") %>%
analyze("AGE", afun = mean, format = "xx.xx")
tbl1 <- build_table(lyt1, DM)
tbl1
lyt2 <- basic_table() %>%
split_cols_by("ARM") %>%
analyze("AGE", afun = sd, format = "xx.xx") %>%
add_existing_table(tbl1)
tbl2 <- build_table(lyt2, DM)
tbl2
table_structure(tbl2)
row_paths_summary(tbl2)
[Package rtables version 0.6.9 Index]