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/sf documentation built on June 8, 2024, 4:23 p.m.