Skip to contents

Check if time series in the panel dataset contain time gaps.

Usage

find_gaps(data, key, index)

Arguments

data

A [data.table::data.table()] instance

Value

Logical value - TRUE if input data contains time gaps.

Examples

glob_econ <- as.data.table(tsibbledata::global_economy)
#> Error in as.data.table(tsibbledata::global_economy): could not find function "as.data.table"
find_gaps(glob_econ, 'Country', 'Year')
#> Error in setDT(data): could not find function "setDT"
glob_econ <- glob_econ[Year != 1970]
#> Error in eval(expr, envir, enclos): object 'glob_econ' not found
find_gaps(glob_econ, 'Country', 'Year')
#> Error in setDT(data): could not find function "setDT"