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
Indexing (non)missing values using first() inside of summarise() no longer works. #1980
Comments
Hello, I have the same kind of problem. |
👍 Have the same issue with the 0.5.0 update |
same problem here with other single-table verbs (mutate, filter) since upgrading to dplyr0.5 |
Thanks, confirmed. Would you like to contribute a testthat test? |
Minimal reprex: library(dplyr, warn.conflicts = FALSE)
tibble(x = 1:3) %>% summarise(f = first(x[-1]))
#> Error in summarise_impl(.data, dots): Unsupported vector type language |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I used to be able to use the following code to get the first non-missing value within a group, but it no longer works. Now I get "Error: Unsupported vector type language."
Rolling back to 0.4.3 confirms that it was the update to 0.5 that caused this change in behavior.
What I wanted the code above to return is something like:
I don't know if this is a bug, a feature, a problem with the configuration of my environment, or if it's just a specific manifestation of some more general bug or feature, but it also occurs when trying to use last() in the same context instead of first().
Also, if you were to tell me a better alternative way to accomplish what I'm trying to do, I wouldn't complain! :D
The text was updated successfully, but these errors were encountered: