Aggregate vector data
aggregate_vector.RdAggregate vector data (points, lines, polygons) and their attributes using simple statistics, a grid, and the data categories.
Arguments
- x
an sf object.
- by
a character(1). A column name in
xwith a category for each row.- grid
and sf object (polygon). A grid used to aggregate
x.- grid_id
a character(1). A column name in
gridwith an unique identifier for each row.- funs
a character. Functions names used to aggregate the data in
xcorresponding to each cell ingrid.- ...
additional parameters passed to funs.