Closed yogat3ch closed 3 years ago
Using the test data here the solution can be tested by adding the following:
test <- purrr::map(test, as_tsibble, regular = F)
test_gaps <- purrr::map(test, scan_gaps)
If ya'll decide to integrate this functionality I'd be happy to mimic it in interval_pull
such that it also behaves similarly.
scan_gaps.tbl_ts
passes the interval stripped of it's units due to missing handlers for intervals above "hour" indefault_time_units
toseq_generator
. Thusscan_gaps
does not work for any time periods above 1 hour. Support for day, month, week, quarter and year time intervals seems to be absent.Brief description of the problem
I would expect this to output two more rows with "2019-12-31" and "2020-12-31" as the time, but instead it allocates an enormous data.frame with ever missing minute, taking quite a long time to complete (at least on my machine).
I'm currently working on a solution proposal. Will tag the PR here when completed.