RleList2matrix: Convert an 'RleList' to a 'matrix'

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Convert an RleList to a matrix. The elements of the RleList should all have the same length.

Usage

1
RleList2matrix(rlelist = NULL)

Arguments

rlelist

An RleList

Value

a matrix with one row for each element of the RleList

Author(s)

Pascal GP Martin

Examples

1
2
3
4
5
6
set.seed(123)
myrlelist <- IRanges::RleList(
                 x = S4Vectors::Rle(sample.int(100, 5)),
                 y = S4Vectors::Rle(sample.int(100, 5)),
                 z = S4Vectors::Rle(sample.int(100, 5)))
RleList2matrix(myrlelist)

pgpmartin/GeneNeighborhood documentation built on Sept. 2, 2021, 6:37 a.m.