Remove markdown syntax (e.g. double star for bold, underscore for italic, etc) from the headers and spanning headers of a gtsummary table.

modify_header_rm_md(x, md = "bold", type = "star")

Arguments

x

(gtsummary)
A gtsummary table

md

(character)
Must be one or more of 'bold' and 'italic'. Default is 'bold'.

type

(character)
Must be one or more of 'star' and 'underscore'. Default is 'star'.

Value

gtsummary table

Examples

tbl_roche_summary(
  data = cards::ADSL,
  include = AGE,
  by = ARM,
  nonmissing = "always"
) |>
  modify_header_rm_md()
Placebo
(N = 86)
Xanomeline High Dose
(N = 84)
Xanomeline Low Dose
(N = 84)
Age


    n 86 84 84
    Mean (SD) 75 (9) 74 (8) 76 (8)
    Median 76 76 78
    Min - Max 52 - 89 56 - 88 51 - 88