Description Usage Arguments Value Slots Creating Objects Methods Author(s) See Also Examples
The drle
class stores delta-run-length-encoded vectors. These differ from other run-length-encoded vectors provided by other packages in that they allow for runs of values that each differ by a common difference (delta).
1 2 3 4 5 |
x |
An integer or numeric vector to convert to delta run length encoding for |
cr_threshold |
The compression ratio threshold to use when converting a vector to delta run length encoding. The default (0) always converts the object to |
delta |
Should non-zero deltas be considered by the encoding? (Default |
An object of class drle
.
values
:The values that begin each run.
lengths
:The length of each run.
deltas
:The difference between the values of each run.
drle
instances can be created through drle()
.
Standard generic methods:
x[i]
:Get the elements of the uncompressed vector.
length(x)
:Get the length of the uncompressed vector.
c(x, ...)
:Combine vectors.
Kylie A. Bemis
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.