breakInSequence: Find "Breaks" in a Sequence of Numbers

View source: R/main.R

breakInSequenceR Documentation

Find "Breaks" in a Sequence of Numbers

Description

Find "Breaks" in a Sequence of Numbers

Usage

breakInSequence(x, expectedDiff = 1)

Arguments

x

vector of numeric

expectedDiff

expected difference between elements in x. A bigger difference is recognised as a break. Default: 1

Value

index of elements after which a break occurs or integer(0) if no break occurs at all


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.