format_indented_groups: Apply formatting to indented groups

format_indented_groupsR Documentation

Apply formatting to indented groups

Description

Transforms tables with Variable/Group columns into indented format where group levels appear as indented rows under variable names. Handles both regression and descriptive tables with appropriate p-value placement.

Usage

format_indented_groups(df, indent_string = "    ")

Arguments

df

Data.table with Variable and Group columns.

indent_string

Character string to use for indentation.

Value

Data.table with Group column removed and levels indented under Variables.


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