cbind_rtables: Column-bind two 'TableTree' objects

View source: R/tt_compatibility.R

cbind_rtablesR Documentation

Column-bind two TableTree objects

Description

Column-bind two TableTree objects

Usage

cbind_rtables(x, ..., sync_count_vis = TRUE)

Arguments

x

(TableTree or TableRow)
a table or row object.

...

one or more further objects of the same class as x.

sync_count_vis

(logical(1))
should column count visibility be synced across the new and existing columns. Currently defaults to TRUE for backwards compatibility but this may change in future releases.

Value

A formal table object.

Examples

x <- rtable(c("A", "B"), rrow("row 1", 1, 2), rrow("row 2", 3, 4))
y <- rtable("C", rrow("row 1", 5), rrow("row 2", 6))
z <- rtable("D", rrow("row 1", 9), rrow("row 2", 10))

t1 <- cbind_rtables(x, y)
t1

t2 <- cbind_rtables(x, y, z)
t2

col_paths_summary(t1)
col_paths_summary(t2)


rtables documentation built on Sept. 30, 2024, 9:32 a.m.