compute an indicator to group consecutive values
computes a vector that changes every time the element is different from the previous.
ignored, might be used for forward compatibility.
an integer vector.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.