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

When creating a variable with the same name as one of the original columns used in unite, the new column is removed (with remove = TRUE). #89

theunis opened this Issue Jun 24, 2015 · 1 comment


None yet
2 participants

theunis commented Jun 24, 2015

For example:

unite(mtcars, vs, vs, am)

removes both the vs and am column, while not creating a new column vs.
If this is intended functionality, perhaps a warning message would be appropriate.


This comment has been minimized.


hadley commented Aug 24, 2015

It does create the column, but it then immediately removes it. You're currently on your own in tidyr if you create multiple columns with the same name.

@hadley hadley closed this Aug 24, 2015

hadley added a commit that referenced this issue Dec 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment