Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win_tbl interval determination #67

Open
dplecko opened this issue Jun 5, 2024 · 0 comments
Open

win_tbl interval determination #67

dplecko opened this issue Jun 5, 2024 · 0 comments

Comments

@dplecko
Copy link
Member

dplecko commented Jun 5, 2024

(@nbenn)
Below is a minimal reproducible example:

> res <- as_id_tbl(
+   data.table(id = 1, start = hours(1), end = hours(2)),
+   id_vars = "id"
+ )
> as_win_tbl(res, index_var = "start", dur_var = "end", by_ref = TRUE)
Error in `assert_that()`:
! x is not compatible with an interval of Inf hours
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
In min(numeric(0), na.rm = TRUE) :
 no non-missing arguments to min; returning Inf

It seems that the error comes from L378 in tbl-class.R, in which interval(index_col(res)) is called, which throws this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant