Description Usage Arguments Details Value Examples
Compute the lengths, values and indices of runs of equal values in a
vector. This is a modifed version of base function rle()
.
1 2 3 4 
x 
an atomic vector for 
... 
further arguments; ignored here. 
digits 
number of significant digits for printing, see

prefix 
character string, prepended to each printed line. 
Missing values are regarded as unequal to the previous value, even if that is also missing.
inverse.rle()
is the inverse function of rle2()
and rle()
,
reconstructing x
from the runs.
rle()
returns an object of class "rle"
which is a list
with components:
lengths 
an integer vector containing the length of each run. 
values 
a vector of the same length as 
1 2 3 4 5 6 7 8 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.