clear_imods: Clear All Indent Mods from a Table

clear_indent_modsR Documentation

Clear All Indent Mods from a Table

Description

Clear All Indent Mods from a Table

Usage

clear_indent_mods(tt)

## S4 method for signature 'VTableTree'
clear_indent_mods(tt)

## S4 method for signature 'TableRow'
clear_indent_mods(tt)

Arguments

tt

TableTree (or related class). A TableTree object representing a populated table.

Value

The same class as tt, with all indent mods set to zero.

Examples

lyt1 <- basic_table() %>%
 summarize_row_groups("STUDYID",label_fstr = "overall summary") %>%
 split_rows_by("AEBODSYS",  child_labels = "visible") %>%
 summarize_row_groups("STUDYID", label = "subgroup summary") %>%
 analyze("AGE", indent_mod = -1L)
 
tbl1 <- build_table(lyt1, ex_adae)
tbl1
clear_indent_mods(tbl1)

rtables documentation built on Aug. 30, 2023, 5:07 p.m.