Add and remove source notes. Source notes are like footnotes, except that they are not linked to a cell in the table and carry no marker. They are printed below the footnotes, after the abbreviations note.
Usage
modify_source_note(x, source_note, text_interpret = c("md", "html", "none"))
remove_source_note(x, source_note_id = NULL)Arguments
- x
(
ltsummary)
An ltsummary object.- source_note
(
string)
A string to add as a source note.- text_interpret
(
string)
How the text is interpreted:"md"(the default; the markdown subset**bold**,_italic_and line breaks),"html"(raw HTML) or"none"(shown verbatim).- source_note_id
(
integer)
The ids of the source notes to remove. Source notes are numbered in the order they were added. Default isNULL, which removes all source notes.
See also
modify_footnote_header() for numbered footnotes and
modify_abbreviation() for the abbreviations note; the
modifier functions article
compares the three.
Other modify and format:
add_variable_group_header(),
bold_italicize_labels_levels,
bold_p(),
modify_abbreviation(),
modify_caption(),
modify_footnote_header(),
modify_header(),
remove_row_type(),
separate_p_footnotes(),
sort_p()
Examples
# Example 1 ----------------------------------
tbl <- tbl_summary(trial, include = c(marker, grade), missing = "no") |>
modify_source_note("Results as of June 26, 2015")
tbl
# Example 2 ----------------------------------
remove_source_note(tbl, source_note_id = 1)