Learn R Programming

crane (version 0.1.0)

add_blank_row: Add Blank Row

Description

Add a blank row below each variable group. 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.

Usage

add_blank_row(x)

Value

updated 'gtsummary' table

Arguments

x

(gtsummary)
a 'gtsummary' table. The table must include a column named 'variable' in x$table_body.

Examples

Run this code
gtsummary::trial |>
  tbl_demographics(
    by = trt,
    include = c(age, marker, grade)
  ) |>
  add_blank_row()

Run the code above in your browser using DataLab