st_combine par variables r

states %>%
  group_by(group_var) %>% 
  summarize(geometry = st_union(geometry))
marcofaga