-
Notifications
You must be signed in to change notification settings - Fork 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
list_rbind() loses spatial class #1076
Comments
Seems more odd, since a few years ago when |
From taking a peek at the code, it looks like # Override vctrs coercion rules and instead derive class from first input
if (is.data.frame(first)) {
out <- dplyr_reconstruct(out, first)
} else {
out <- as_tibble(out)
}
out
} |
Tracking in related vctrs issue. |
Maybe this one r-lib/vctrs#1741 |
When binding a list of spatial data frames, the
sf
class is lost from the result.(Perhaps this is where the
ptype
argument tolist_rbind()
is useful, but I don't know what I would need to use there.)This feels like a loss of functionality, or at least an unexpected result, compared to using
dplyr::bind_rows()
, or a workflow usingmap_dfr
that I might have used previously.I'm sure you'll say this is behaving as desired, not a bug, but as a user of
purrr
this felt like an unexpected behaviour.Created on 2023-05-02 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: