I am having trouble finding the best way to merge multiple sf polygons into one new sf polygon. I have been using st_union
however that seems to only merge two sf objects pairwise.
The %>%
notation works to pipe a bunch of st_union
functions, but there must be a different way?
all <- st_union(rd) %>% st_union(cb) %>% st_union(pl) %>% st_union(sl) %>%
st_union(wp) %>% st_union(wf) %>% st_union(bd)
Also I find performance is really slow...