modify_footnote2 | R Documentation |
Modify Footnotes
modify_footnote_header(
x,
footnote,
columns,
replace = TRUE,
text_interpret = c("md", "html")
)
modify_footnote_body(
x,
footnote,
columns,
rows,
replace = TRUE,
text_interpret = c("md", "html")
)
modify_footnote_spanning_header(
x,
footnote,
columns,
level = 1L,
replace = TRUE,
text_interpret = c("md", "html")
)
remove_footnote_header(x, columns)
remove_footnote_body(x, columns, rows)
remove_footnote_spanning_header(x, columns, level)
x |
( |
footnote |
( |
columns |
( For |
replace |
(scalar |
text_interpret |
( |
rows |
(predicate |
level |
( |
Updated gtsummary object
# Example 1 ----------------------------------
tbl <- trial |>
tbl_summary(by = trt, include = c(age, grade), missing = "no") |>
modify_footnote_header(
footnote = "All but four subjects received both treatments in a crossover design",
columns = all_stat_cols(),
replace = FALSE
) |>
modify_footnote_body(
footnote = "Tumor grade was assessed _before_ treatment began",
columns = "label",
rows = variable == "grade" & row_type == "label"
)
tbl
# Example 2 ----------------------------------
# remove all footnotes
tbl |>
remove_footnote_header(columns = all_stat_cols()) |>
remove_footnote_body(columns = label, rows = variable == "grade" & row_type == "label")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.