group_if_consecutive: Create groups if values are consecutive

View source: R/data_transformation.R

group_if_consecutiveR Documentation

Create groups if values are consecutive

Description

Create groups if values are consecutive

Usage

group_if_consecutive(x)

Arguments

x

The vector over which to create groups.

Value

A integer vector showing the consecutive groups of x.


stuart-morrison/sumo documentation built on Jan. 2, 2025, 8:45 p.m.