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?
to your account
To be consistent with tidyverse/design#24
And it would also make tibble(x = 1, y = NULL) return the same as:
tibble(x = 1, y = NULL)
df <- tibble(x = 1)
df$y <- NULL
The text was updated successfully, but these errors were encountered:
What should tibble(a = 1, a = NULL) do?
tibble(a = 1, a = NULL)
Sorry, something went wrong.
I think the current behaviour of throwing an error about duplicated columns is probably correct.
According to the principles a = NULL would be treated as absent.?
a = NULL
The principles aren't set in stone yet.
The question is really about which principle (names must be unique; NULL columns are silently dropped) should be applied first. I don't have a strong argument either way, so do whatever is easiest to implement.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
No branches or pull requests