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

filter(dd, ...) throws bad error when names(dd) contains NA #6758

Closed
jaganmn opened this issue Feb 24, 2023 · 0 comments · Fixed by #6760
Closed

filter(dd, ...) throws bad error when names(dd) contains NA #6758

jaganmn opened this issue Feb 24, 2023 · 0 comments · Fixed by #6760
Milestone

Comments

@jaganmn
Copy link

jaganmn commented Feb 24, 2023

filter(dd, ...) complains about non-existent zero-length variable names when names(dd) contains NA:

library(dplyr)
dd <- data.frame(1:10, rnorm(10), letters[1:10])
names(dd) <- c("a", "b", NA)
filter(dd, b > 0)
## Error in initialize(...) : attempt to use zero-length variable name

Debugging details here: https://stackoverflow.com/a/75553014/12685768

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

Successfully merging a pull request may close this issue.

2 participants