add_blank_row: Add Blank Row

View source: R/add_blank_row.R

add_blank_rowR Documentation

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)

Arguments

x

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

Value

updated 'gtsummary' table

Examples

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

crane documentation built on April 12, 2025, 2 a.m.