seqle.Rd
The function is adapted from the rle
function for computing the lengths and values of runs of equal values in a vector -- or the reverse operation.
seqle(x)
x | Vector of integers |
---|
A list with two components:
lengths | An integer vector containing the length of each run. |
values | a vector of the same length as lengths with the corresponding values. |
https://stackoverflow.com/questions/8400901/group-integer-vector-into-consecutive-runs/8402950#8402950