modify_bold_italic | R Documentation |
Add or remove bold and italic styling to a cell in a table.
modify_bold(x, columns, rows)
remove_bold(x, columns, rows)
modify_italic(x, columns, rows)
remove_italic(x, columns, rows)
x |
( |
columns |
( For |
rows |
(predicate |
Updated gtsummary object
# Example 1 ----------------------------------
tbl <- trial |>
tbl_summary(include = grade) |>
modify_bold(columns = label, rows = row_type == "label") |>
modify_italic(columns = label, rows = row_type == "level")
tbl
# Example 2 ----------------------------------
tbl |>
remove_bold(columns = label, rows = row_type == "label") |>
remove_italic(columns = label, rows = row_type == "level")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.