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.

decode(x, ...)

# S4 method for DataFrame
decode(x)

# S4 method for GRanges
decode(x)

Arguments

x

Object.

...

Additional arguments.

Value

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

See also

Examples

data(rse, package = "acidtest") mcols <- S4Vectors::mcols(rse) lapply(mcols, class)
#> $geneID #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $geneName #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $geneBiotype #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $broadClass #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $entrezID #> [1] "list" #>
x <- decode(mcols) lapply(x, class)
#> $geneID #> [1] "character" #> #> $geneName #> [1] "factor" #> #> $geneBiotype #> [1] "factor" #> #> $broadClass #> [1] "factor" #> #> $entrezID #> [1] "list" #>