
sf
objectsf
object, possibly union-ing geometries
"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
.