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

lead() and lag() aren't type stable on x 😱 #6330

Closed
DavisVaughan opened this issue Jul 13, 2022 · 0 comments · Fixed by #6336
Closed

lead() and lag() aren't type stable on x 😱 #6330

DavisVaughan opened this issue Jul 13, 2022 · 0 comments · Fixed by #6336
Assignees
Labels
bug an unexpected problem or unintended behavior

Comments

@DavisVaughan
Copy link
Member

library(dplyr)

x <- 1:5

typeof(lag(x, default = 0))
#> [1] "double"

Created on 2022-07-13 by the reprex package (v2.0.1)

@DavisVaughan DavisVaughan self-assigned this Jul 13, 2022
@DavisVaughan DavisVaughan added the bug an unexpected problem or unintended behavior label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant