TreeSummarizedExperiment-combine: Combine TSEs by rows or columns

rbind,TreeSummarizedExperiment-methodR Documentation

Combine TSEs by rows or columns

Description

rbind and cbind take one or more TreeSummarizedExperiment objects and combine them by columns or rows, respectively.

Usage

## S4 method for signature 'TreeSummarizedExperiment'
rbind(..., deparse.level = 1)

## S4 method for signature 'TreeSummarizedExperiment'
cbind(..., deparse.level = 1)

Arguments

...

One or more TreeSummarizedExperiment objects.

deparse.level

See cbind

Value

A TreeSummarizedExperiment object

Author(s)

Ruizhu Huang

Examples


# rbind works : 
# a) TSE without rowTree and without colTree
# b) TSE with rowTree but without colTree
# c) TSE without rowTree but with colTree
# d) TSE with rowTree & colTree

set.seed(1)
# a) 
(tse_a <- makeTSE(include.colTree = FALSE))
(tse_b <- makeTSE(include.colTree = FALSE))

# b) 
(tse_c <- makeTSE(include.rowTree = FALSE))
(tse_d <- makeTSE(include.rowTree = FALSE))

rbind(tse_a, tse_b)
cbind(tse_c, tse_d)

fionarhuang/TreeSummarizedExperiment documentation built on June 11, 2025, 9:42 a.m.