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 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 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
Fixes #89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants