find_int_gap {sdtm.oak}R Documentation

Find gap intervals in integer sequences

Description

find_int_gap() determines the start and end positions for gap intervals in a sequence of integers. By default, the interval range to look for gaps is defined by the minimum and maximum values of x; specify xmin and xmax to change the range explicitly.

Usage

find_int_gap(x, xmin = min(x), xmax = max(x))

Arguments

x

An integer vector.

xmin

Left endpoint integer value.

xmax

Right endpoint integer value.

Value

A tibble of gap intervals of two columns:


[Package sdtm.oak version 0.1.1 Index]