Decode (run-length encoding)

decode(x, ...)

# S4 method for DataFrame
decode(x)

# S4 method for Ranges
decode(x)

Arguments

x

Object.

...

Additional arguments.

Value

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

Note

Updated 2021-02-03.

See also

Examples

data(DFrame, package = "AcidTest") df <- DFrame ## DataFrame ==== df <- encode(df) lapply(df, class)
#> $sample01 #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $sample02 #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $sample03 #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #> #> $sample04 #> [1] "Rle" #> attr(,"package") #> [1] "S4Vectors" #>
x <- decode(df) lapply(x, class)
#> $sample01 #> [1] "integer" #> #> $sample02 #> [1] "integer" #> #> $sample03 #> [1] "integer" #> #> $sample04 #> [1] "integer" #>