rleDiff-class {Matrix} | R Documentation |
Class "rleDiff"
is for compactly storing long vectors
which mainly consist of linear stretches. For such a vector
x
, diff(x)
consists of constant stretches
and is hence well compressable via rle()
.
Objects can be created by calls of the form new("rleDiff", ...)
.
Currently experimental, see below.
first
:"numIndex"
which is currently the same as "numeric"
).rle
:"rle"
, basically a
list
with components "lengths"
and
"values"
, see rle
.No methods defined with class "rleDiff" in the signature.
This is currently an experimental auxiliary class
for the class abIndex
, see there.
showClass("rleDiff")