Aggregate vector data using a grid
aggregate_geom.RdThis function estimates the geometric properties (number, length, and area) resulting from the intersection of the given vector data and a grid.
Arguments
- x
an sf object.
- by
a character(1). A column name in
x.- grid
an sf object (polygon). A grid used for aggregating
x.- grid_id
a character(1). A column name in
gridwith identifiers for each cell ingrid.- funs
a character. Name of funcions for aggregating the data in
xthat intersects with each cell ingrid.- ...
additional parameters of
funs.