
Last chance! 50% off unlimited learning
Sale ends in
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.
There is a simple show
method only.
rle
, '>abIndex
.
# NOT RUN {
showClass("rleDiff")
ab <- c(abIseq(2, 100), abIseq(20, -2))
ab@rleD # is "rleDiff"
# }
Run the code above in your browser using DataLab