sf
object, possibly union-ing geometries# S3 method for sf
aggregate(x, by, FUN, ..., union = FALSE)
factor
, the same length as the number of rows in x
, with groups to aggregate by (aggregation predicate)ids
was specified and attributes need to be groupedFUN
sf
object with aggregated attributes and geometries, with an additional grouping variable called Group.1
.