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

[dplyr compatibility] bind_rows with sf objects fails #223

Closed
tiernanmartin opened this issue Feb 20, 2017 · 5 comments
Closed

[dplyr compatibility] bind_rows with sf objects fails #223

tiernanmartin opened this issue Feb 20, 2017 · 5 comments

Comments

@tiernanmartin
Copy link

library(tidyverse)
library(sf)

demo(nc, ask = FALSE)

bind_rows(nc[1:50, ], nc[51:100, ])
#> Error in .subset2(x, i, exact = exact): attempt to select less than one element in get1index
@tiernanmartin
Copy link
Author

Related to #42

@tiernanmartin tiernanmartin changed the title [dplry compatibility] bind_rows with sf objects fails [dplyr compatibility] bind_rows with sf objects fails Feb 20, 2017
@edzer
Copy link
Member

edzer commented Feb 21, 2017

This is also related to #92 ; bind_rows is not a generic, and neither calls it one, so we can't make that work here. Maybe raise the issue with dplyr? rbind works for sf objects, anything against that?

@tiernanmartin
Copy link
Author

Got it. I've raised an issue at thedplyrrepo and in the meantime I can certainly use rbind.

@tiernanmartin
Copy link
Author

Looks like this is a broader issue with bind_rows - see tidyverse/dplyr#2457

@edzer
Copy link
Member

edzer commented Feb 26, 2017

Closing, as this is a dplyr issue.

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