Learn R Programming

rtables (version 0.4.0)

collect_leaves: Collect leaves of a table tree

Description

Collect leaves of a table tree

Usage

collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

# S4 method for TableTree collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

# S4 method for ElementaryTable collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

# S4 method for VTree collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

# S4 method for VLeaf collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

# S4 method for `NULL` collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

# S4 method for ANY collect_leaves(tt, incl.cont = TRUE, add.labrows = FALSE)

Arguments

tt

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

incl.cont

logical. Include rows from content tables within the tree. Defaults to TRUE

add.labrows

logical. Include label rows. Defaults to FALSE

Value

A list of TableRow objects for all rows in the table