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

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

Closed
theunis opened this issue Jun 24, 2015 · 1 comment

Comments

@theunis
Copy link

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.

@hadley
Copy link
Member

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.

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

No branches or pull requests

2 participants