Skip to contents

Appends footnotes after the existing ones and drops exact duplicates, keeping the first occurrence. Renderers use this to place builder-derived notes (for example a hazard ratio) after the table-of-contents footnotes.

Usage

tlf_titles_add_footnotes(titles, footnotes)

Arguments

titles

A tlf_titles() object.

footnotes

Character vector to append.

Value

A new tlf_titles.

Examples

t <- tlf_titles("Overall Survival", type = "Figure", number = "14.2.1")
tlf_titles_add_footnotes(t, "Log-rank p-value: 0.032")$footnotes
#> [1] "Log-rank p-value: 0.032"