"rleDiff" is for compactly storing long vectors
which mainly consist of linear stretches. For such a vector
diff(x) consists of constant stretches
and is hence well compressable via
Objects can be created by calls of the form
Currently experimental, see below.
A single number (of class
a class union of
Object of class
"rle", basically a
list with components
rle(). As this is used to
encode potentially huge index vectors,
lengths may be of
There is a simple
show method only.
This is currently an experimental auxiliary class
for the class
abIndex, see there.
showClass("rleDiff") ab <- c(abIseq(2, 100), abIseq(20, -2)) ab@rleD # is "rleDiff"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.