st_combine by variables R code example
Example: st_combine by variables R
states %>%
group_by(group_var) %>%
summarize(geometry = st_union(geometry))
states %>%
group_by(group_var) %>%
summarize(geometry = st_union(geometry))