decode: Decode column data that uses run-length encoding

Description Usage Arguments Value Note See Also Examples

Description

The Rle class is a general container for storing an atomic vector that is stored in a run-length encoding format. It is based on the rle function from the base package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
decode(x, ...)

## S4 method for signature 'DataFrame'
decode(x)

## S4 method for signature 'Ranges'
decode(x)

## S4 method for signature 'SummarizedExperiment'
decode(x)

Arguments

x

Object.

...

Additional arguments.

Value

Modified object. Columns will be decoded and no longer Rle class.

Note

Updated 2019-07-20.

See Also

S4Vectors::decode().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(RangedSummarizedExperiment, package = "acidtest")
rowData <- SummarizedExperiment::rowData

## DataFrame ====
df <- rowData(RangedSummarizedExperiment)
lapply(df, class)
x <- decode(df)
lapply(x, class)

## SummarizedExperiment ====
## This works on rowData and colData.
x <- decode(RangedSummarizedExperiment)
lapply(rowData(x), class)

steinbaugh/transformer documentation built on Jan. 9, 2020, 12:53 p.m.