condense_table_rows: Condense table rows for more compact display

View source: R/table2_utils.R

condense_table_rowsR Documentation

Condense table rows for more compact display

Description

Collapses multi-row variables into single rows for compact tables. Continuous variables show only the first statistic row, binary categorical variables show only the non-reference category, and survival variables show only the median row.

Usage

condense_table_rows(df, indent_groups = TRUE)

Arguments

df

Data.table with Variable and Group columns.

indent_groups

Logical whether indentation will be applied (affects processing).

Value

Data.table with condensed rows.


summata documentation built on May 7, 2026, 5:07 p.m.