tt_to_flextable | R Documentation |
FlexTable
object representing an rtables
TableTree
Create a FlexTable
object representing an rtables
TableTree
tt_to_flextable(
tt,
paginate = FALSE,
lpp = NULL,
cpp = NULL,
...,
colwidths = propose_column_widths(matrix_form(tt, indent_rownames = TRUE)),
tf_wrap = !is.null(cpp),
max_width = cpp,
total_width = 10
)
tt |
|
paginate |
logical(1). Should |
lpp |
numeric. Maximum lines per page including (re)printed header and context rows |
cpp |
numeric(1) or NULL. Width (in characters) of the pages for
horizontal pagination. |
... |
Passed on to methods or tabulation functions. |
colwidths |
numeric vector. Column widths for use with vertical pagination. |
tf_wrap |
logical(1). Should the texts for title, subtitle, and footnotes be wrapped? |
max_width |
integer(1), character(1) or NULL. Width that title
and footer (including footnotes) materials should be
word-wrapped to. If NULL, it is set to the current print width
of the session ( |
total_width |
numeric(1). Total width in inches for the resulting
|
a flextable
object
analysisfun <- function(x, ...) {
in_rows(row1 = 5,
row2 = c(1, 2),
.row_footnotes = list(row1 = "row 1 - row footnote"),
.cell_footnotes = list(row2 = "row 2 - cell footnote"))
}
lyt <- basic_table(title = "Title says Whaaaat", subtitles = "Oh, ok.",
main_footer = "ha HA! Footer!") %>%
split_cols_by("ARM") %>%
analyze("AGE", afun = analysisfun)
tbl <- build_table(lyt, ex_adsl)
ft <- tt_to_flextable(tbl)
ft
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.