-
Notifications
You must be signed in to change notification settings - Fork 301
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 using separate_wider_delim()
function remove sf
class and returns tibble
#2359
Comments
separate_wider_delim()
function remove sf
class and return tibble
separate_wider_delim()
function remove sf
class and returns tibble
Since the function uses Would have to wait for tidyverse/tidyr#1372 to be merged Edit: there would still be work required in sf afterwards to define |
I shared the same comment on the PR for tidyr but I just wanted to flag that these random-feeling points of incompatibility between sf and the tidyverse are pretty frustrating to teach! The "sticky" geometry columns sticks most of the time but not if.... . FWIW - I assembled a reference for my students last year and just updated it to include this issue: https://gist.github.com/elipousson/d423349f98b4afd35920afd672ad2617 |
Given that this issue is deep in a PR related to |
FWIW - the proposal (or experiment) in #2131 might have developer advantages, but IMO would make it much harder to understand from the user side when geometries are sticky, and when they aren't. |
When using
separate_wider_delim()
with asf
object, the function misbehaves and returns atibble
. If usingseparate()
the class of thesf
object is retained. The same issue was documented in issue tidyverse/tidyr#1495 but no reprex was provided. I had originally made the issue report on the{tidyr}
repo, see tidyverse/tidyr#1498, but was recently informed that is likely due to an issues with{sf}
not supporting these newer versions ofseparate_
functions. This is using v1.3.0 of{tidyr}
and{sf}
v1.0-15 and see reprex.Created on 2024-03-14 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: