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

Columns get assigned incorrect names when joining if by vector in incorrect order #855

jnolis opened this issue Dec 19, 2014 · 1 comment


Copy link

jnolis commented Dec 19, 2014

When I run the following code I get the output below using the the most recent master branch:

The code:

x <- data.frame(q=c("a","b","c"),r=c("d","e","f"),s=c("1","2","3"))
y <- data.frame(q=c("a","b","c"),r=c("d","e","f"),t=c("xxx","xxx","xxx"))

The output:

q r s   t
d a 1 xxx
e b 2 xxx
f c 3 xxx

The values in first two columns were swapped by the names were not. Either they should both swap (so the column order then becomes r q s t or the columns shouldn't be swapped in the first place.

Copy link

hadley commented Dec 28, 2014

@romainfrancois could you please take a look?

@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet

No branches or pull requests

2 participants