Union specified polygons within a shapefile.
Examples
if (FALSE) { # \dontrun{
library(gslSpatial)
library(terra)
library(tidyterra)
library(ggplot2)
v <- vect(system.file("ex/lux.shp", package="terra"))
ggplot()+geom_spatvector(data=v)+geom_spatvector_text(data=v,aes(label=NAME_2))
v2<-union_polygons(v,'NAME_2',c('Remich','Luxembourg'),'Remich-Luxembourg')
ggplot()+geom_spatvector(data=v2)+geom_spatvector_text(data=v2,aes(label=NAME_2))
} # }