getNextPosition is a utility function that helps when parsing strings that contain delimiters.

getNextPosition(positions, afterPosition)

Arguments

positions

An ordered numeric vector.

afterPosition

The value to start searching after.

Value

The first value in the array larger than afterPosition.