seq_consecutive: compute an indicator to group consecutive values

View source: R/consecutive.R

seq_consecutiveR Documentation

compute an indicator to group consecutive values

Description

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

Usage

seq_consecutive(x, ...)

Arguments

x

a vector

...

ignored, might be used for forward compatibility.

Value

an integer vector.


dostats documentation built on May 11, 2022, 1:08 a.m.