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
The upcoming dplyr release outlined here overhauls the approach to NSE, and deprecates all the SE verbs (e.g. select_()). With these changes the dplyr verbs for sf objects no longer work. In some cases an error is raised, in others the code runs error free but strips the sf class from the resulting object.
# install development version
devtools::install_github("hadley/dplyr")
library(dplyr)
library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"), stringsAsFactors = FALSE)
# error
select(nc, AREA)
distinct(nc, SID74)
# strip sf class, converts to normal data frame
mutate(nc, area = AREA * 100) %>% class()
group_by(nc, SID74) %>% class()
filter(nc, AREA > 0.2) %>% class()
The text was updated successfully, but these errors were encountered:
The upcoming
dplyr
release outlined here overhauls the approach to NSE, and deprecates all the SE verbs (e.g.select_()
). With these changes thedplyr
verbs forsf
objects no longer work. In some cases an error is raised, in others the code runs error free but strips thesf
class from the resulting object.The text was updated successfully, but these errors were encountered: