encode | R Documentation |
Encode using run-length encoding
encode(x, ...)
## S4 method for signature 'Date'
encode(x)
## S4 method for signature 'DFrame'
encode(x, j = NULL)
## S4 method for signature 'Ranges'
encode(x)
## S4 method for signature 'Rle'
encode(x)
## S4 method for signature 'atomic'
encode(x)
## S4 method for signature 'factor'
encode(x)
x |
Object. |
j |
|
... |
Additional arguments. |
Modified object.
All atomic
columns will be encoded to Rle
S4 class.
Updated 2023-09-26.
Rle()
.
## DFrame ====
binary <- seq(from = 0L, to = 1L)
object <- S4Vectors::DataFrame(
"a" = rep(x = binary, times = 50L),
"b" = rep(x = binary, each = 50L)
)
lapply(object, class)
object <- encode(object)
lapply(object, class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.