You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applied to an sf object, rows_update() throws the error message #> Error: Attempting to update missing rows. but if I transform the object to a tibble first, it works just fine, and then I can get back to an sf object with sf::st_as_sf(), which is not an ideal workflow. Could you make rows_update() function sf friendly like other dplyr functions?
Thanks. My first instinct is to suggest implementing rows_update() and friends in the sf package, even if it's with a wrapper as_tibble() %>% rows_update() %>% st_as_sf() . I'll take a look and propose something.
This issue was 'closed as completed' but the problem documented in the original post persists with dplyr_1.1.4, except the error message has changed:
Error in rows_update():
! Can't reconstruct data frame.
✖ The [ method for class <sf/data.frame> must return a data frame with 1 column.
ℹ It returned a <sf/data.frame> of 2 columns.
When applied to an
sf
object,rows_update()
throws the error message#> Error: Attempting to update missing rows.
but if I transform the object to atibble
first, it works just fine, and then I can get back to ansf
object withsf::st_as_sf()
, which is not an ideal workflow. Could you makerows_update()
functionsf
friendly like otherdplyr
functions?Created on 2021-06-04 by the reprex package (v2.0.0)
The text was updated successfully, but these errors were encountered: