Learn R Programming

tsibble (version 0.6.1)

gaps: 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

Run this code
# NOT RUN {
gaps(x = c(1:3, 5:6, 9:10), y = 1:10)
# }

Run the code above in your browser using DataLab