getNextPosition: Find the first value in an array that is larger than the specified value.
Description
getNextPosition
is a utility function that helps when parsing strings
that contain delimiters.
Usage
getNextPosition(positions, afterPosition)
Value
The first value in the array larger than afterPosition.
Arguments
- positions
An ordered numeric vector.
- afterPosition
The value to start searching after.