Skip to contents

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