| RefFootnote | R Documentation |
Referential Footnote
RefFootnote(note, index = NA_integer_, symbol = NA_character_)
note |
( |
index |
( |
symbol |
( |
When symbol is non-missing, all footnotes with the same symbol
will share a single footer entry containing note, rather than it
being entered repeatedly. symbol cannot be "NA" or contain "{"
or "}".
a RefFootnote object suitable for use in in_rows and
fnotes_at_path<- and rcell, or NULL if note is of length zero.
afun1 <- function(x, ...) {
in_rows(
row1 = 5,
row2 = c(1, 2),
.row_footnotes = list(row1 = list(RefFootnote("row 1 rfn"))),
.cell_footnotes = list(row2 = list(RefFootnote("row 2 cfn")))
)
}
afun2 <- function(x, ...) {
in_rows(
row1 = 5,
row2 = c(1, 2),
.row_footnotes = list(row1 = list(RefFootnote("row 1 rfn", symbol = "+"))),
.cell_footnotes = list(row2 = list(RefFootnote("row 2 cfn", symbol = "^")))
)
}
lyt1 <- basic_table() |>
split_cols_by("ARM") |>
analyze("AGE", afun = afun1)
build_table(lyt1, DM)
lyt2 <- basic_table() |>
split_cols_by("ARM") |>
split_rows_by("STRATA1") |>
analyze("AGE", afun = afun2)
build_table(lyt2, DM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.