Skip to contents

Lump Like Vectors Together

Usage

lump(x, threshold = 3)

Arguments

x

<numeric> vector

threshold

<numeric> threshold; default is 3

Value

<numeric> vector

Examples

lump(c(1:3, 5, 8:10, 15))
#> [1] 1 1 1 1 2 2 2 3