Skip to content

rbind_all gives incorrect results with NULL arguments #274

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

Closed
njcray opened this issue Feb 21, 2014 · 0 comments
Closed

rbind_all gives incorrect results with NULL arguments #274

njcray opened this issue Feb 21, 2014 · 0 comments

Comments

@njcray
Copy link

njcray commented Feb 21, 2014

Using dplyr 0.1.1 rbind_all no longer crashes with NULL arguments but it gives incorrect results compared with do.call(rbind.

x=cbind(a=1:10,b=1:10)
y=data.frame(x)

rbind_all(list(x,x,NULL,x))
do.call(rbind,list(x,x,NULL,x))

rbind_all(list(y,y,NULL,y))
do.call(rbind,list(y,y,NULL,y))

The rbind_all results have additional NA entries. If you run the rbind_all lines multiple times you get different results each time.

@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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant