Closed jrauser closed 6 months ago
The root cause is the same as with this issue.
Putting this patched function in my code works around the issue:
vec_ptype2.yearweek.yearweek <- function(x, y, ...) {
if (attr(x, "week_start") != attr(y, "week_start")) {
abort("Can't combine <yearweek> with different `week_start`.")
}
yearweek(NULL, week_start=attr(x, "week_start"))
}
When a calling fill_gaps() with keyed tsibble whose index is yearweek, and when week.start is not 1, fill_gaps() will fail with the error "Can't combine with different
week_start
"