R: Does a tsibble have implicit gaps in time?

has_gaps {tsibble} | R Documentation

## Does a tsibble have implicit gaps in time?

### Description

Does a tsibble have implicit gaps in time?

### Usage

    has_gaps(.data, .full = FALSE, ...)

### Arguments

`.data` | A `tbl_ts`.
`.full` | `FALSE` to find gaps for each series within its own period. `TRUE` to find gaps over the entire time span of the data.
`...` | Other arguments passed on to individual methods.

### Value

A tibble contains "key" variables and new column `.gaps` of `TRUE`/`FALSE`.

### See Also

Other implicit gaps handling: `count_gaps`, `fill_gaps`, `scan_gaps`

### Examples

    harvest <- tsibble(
      year = c(2010, 2011, 2013, 2011, 2012, 2013),
      fruit = rep(c("kiwi", "cherry"), each = 3),
      kilo = sample(1:10, size = 6),
      key = fruit, index = year
    )
    has_gaps(harvest)
    has_gaps(harvest, .full = TRUE)

[Package tsibble version 0.8.2 Index]