View source: R/add_blank_rows.R
add_blank_rows | R Documentation |
Add a blank row below each variable group defined by variables
or below each
specified row_numbers
. A blank row will not be added to the bottom of the table.
NOTE: For HTML flextable output (which includes the RStudio IDE Viewer), the blank rows do not render. But they will appear when the table is rendered to Word.
add_blank_rows(x, variables = NULL, row_numbers = NULL, variable_level = NULL)
x |
( |
variables , row_numbers , variable_level |
(
|
updated 'gtsummary' table.
# Example 1 ----------------------------------
# Default to every variable used
trial |>
tbl_roche_summary(
by = trt,
include = c(age, marker, grade),
nonmissing = "always"
) |>
add_blank_rows(variables = everything())
# Example 2 ----------------------------------
trial |>
tbl_roche_summary(
by = trt,
include = c(age, marker, grade),
nonmissing = "always"
) |>
add_blank_rows(variables = age)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.