tbl_split | R Documentation |
experimental
The tbl_split
function splits a single gtsummary table into multiple tables.
Updates to the print method are expected.
tbl_split(x, ...)
## S3 method for class 'gtsummary'
tbl_split(x, variables, ...)
## S3 method for class 'tbl_split'
print(x, ...)
x |
gtsummary table |
... |
not used |
variables |
variables at which to split the gtsummary table rows (tables will be separated after each of these variables) |
tbl_split
object
Other tbl_regression tools:
add_global_p()
,
add_q()
,
bold_italicize_labels_levels
,
combine_terms()
,
inline_text.tbl_regression()
,
modify
,
tbl_merge()
,
tbl_regression()
,
tbl_stack()
,
tbl_strata()
Other tbl_uvregression tools:
add_global_p()
,
add_q()
,
bold_italicize_labels_levels
,
inline_text.tbl_uvregression()
,
modify
,
tbl_merge()
,
tbl_stack()
,
tbl_strata()
,
tbl_uvregression()
Other tbl_summary tools:
add_n.tbl_summary()
,
add_overall()
,
add_p.tbl_summary()
,
add_q()
,
add_stat_label()
,
bold_italicize_labels_levels
,
inline_text.tbl_summary()
,
inline_text.tbl_survfit()
,
modify
,
separate_p_footnotes()
,
tbl_custom_summary()
,
tbl_merge()
,
tbl_stack()
,
tbl_strata()
,
tbl_summary()
Other tbl_survfit tools:
add_n.tbl_survfit()
,
add_nevent.tbl_survfit()
,
add_p.tbl_survfit()
,
modify
,
tbl_merge()
,
tbl_stack()
,
tbl_strata()
,
tbl_survfit()
Other tbl_svysummary tools:
add_n.tbl_summary()
,
add_overall()
,
add_p.tbl_svysummary()
,
add_q()
,
add_stat_label()
,
modify
,
separate_p_footnotes()
,
tbl_merge()
,
tbl_stack()
,
tbl_strata()
,
tbl_svysummary()
tbl <-
tbl_summary(trial) %>%
tbl_split(variables = c(marker, grade))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.