apply_zebra_stripes_ft: Apply zebra stripes with proper variable group detection for...

View source: R/table2_utils.R

apply_zebra_stripes_ftR Documentation

Apply zebra stripes with proper variable group detection for indented tables

Description

Applies alternating background colors to variable groups in flextable objects. Handles both indented tables (detects groups by leading whitespace) and non-indented tables (uses pre-identified groups).

Usage

apply_zebra_stripes_ft(ft, df, var_groups)

Arguments

ft

flextable object.

df

The source data.table used to create the flextable.

var_groups

List of row index vectors for variable groups.

Value

Flextable object with zebra stripe formatting applied.


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