encode: Encode using run-length encoding

encodeR Documentation

Encode using run-length encoding

Description

Encode using run-length encoding

Usage

encode(x, ...)

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

Arguments

x

Object.

...

Additional arguments.

Value

Modified object. All atomic columns will be encoded to Rle S4 class.

Note

Updated 2021-02-03.

See Also

S4Vectors::Rle().

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
## This works on rowData and colData.
object <- RangedSummarizedExperiment
object <- encode(object)
lapply(
    X = SummarizedExperiment::rowData(object),
    FUN = class
)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.