Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

sf (version 0.4-2)

aggregate.sf: aggregate an

Description

aggregate an sf object, possibly union-ing geometries

Usage

# S3 method for sf
aggregate(x, by, FUN, ..., do_union = TRUE, simplify = TRUE)

Arguments

x
object of class sf
by
FUN
function passed on to aggregate, in case ids was specified and attributes need to be grouped
...
arguments passed on to FUN
do_union
logical; should grouped geometries be unioned using st_union?
simplify
logical; see aggregate

Value

an sf object with aggregated attributes and geometries, with an additional grouping variable called Group.1.