seq_consecutive: compute an indicator to group consecutive values

Description

computes a vector that changes every time the element is different from the previous.

Usage

1

Arguments

x

a vector

...

ignored, might be used for forward compatibility.

Value

an integer vector.


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.