group_by_diff: create groups by numerical difference threshold

View source: R/group_by_diff.R

group_by_diffR Documentation

create groups by numerical difference threshold

Description

create groups by numerical difference threshold

Usage

group_by_diff(x, difference = 1)

Arguments

x

numeric. Vector that should be binned into groups. Also possible with Dates.

difference

Integer. Specify maximum within-group difference.

Note

vector should be arranged (sorted) prior to group_by_diff.


sachserf/fsf documentation built on June 7, 2024, 11 a.m.