
Last chance! 50% off unlimited learning
Sale ends in
Does a tsibble have implicit gaps in time?
has_gaps(.data, ...)# S3 method for tbl_ts
has_gaps(.data, .full = FALSE, ...)
A tbl_ts
.
Other arguments passed on to individual methods.
FALSE
to find gaps for each group within its own period. TRUE
to find gaps over the entire time span of the data.
A tibble contains "key" variables and new column .gaps
of TRUE
/FALSE
.
Other implicit gaps handling: count_gaps
,
fill_gaps
# NOT RUN {
harvest <- tsibble(
year = c(2010, 2011, 2013, 2011, 2012, 2013),
fruit = rep(c("kiwi", "cherry"), each = 3),
kilo = sample(1:10, size = 6),
key = id(fruit), index = year
)
has_gaps(harvest)
has_gaps(harvest, .full = TRUE)
# }
Run the code above in your browser using DataLab