Similar to rle function, this function
detects "runs" of adjacent integers, and displays vector of
run lengths and list of corresponding integer sequences.
Usage
adj.rle(x)
Arguments
x
a numeric vector with
Value
a list with two elements: vector of run lengths, and
another list of values corresponding to generated
sequences' lengths.