lifecycle::badge("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 gtsummary
tbl_split(x, variables, ...)
# S3 method for tbl_split
print(x, ...)
tbl_split object
gtsummary table
not used
variables at which to split the gtsummary table rows (tables will be separated after each of these variables)
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_ci(),
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))
Run the code above in your browser using DataLab