gaps {tsibble}R Documentation

Find missing elements in x with respect to y

Description

Find missing elements in x with respect to y

Usage

gaps(x, y)

Arguments

x, y

Atomic vectors. The length of y must be greater than the length of x.

Value

A tibble of columns .from, .to and .n.

Examples

gaps(x = c(1:3, 5:6, 9:10), y = 1:10)

[Package tsibble version 0.6.2 Index]