Find the indices of changes in runs in a vector. This function pairs well with
split_index and is the default for the indices in all split_index
functions that act on atomic vectors.
Usage
change_index(x, ...)
Arguments
x
A vector.
…
ignored.
Value
Returns a vector of integer indices of where a vector initially changes.