seq_consecutive: compute an indicator to group consecutive values

Description Usage Arguments Value

View source: R/consecutive.R

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.


dostats documentation built on May 29, 2017, 6:07 p.m.

Search within the dostats package
Search all R packages, documentation and source code