Aggregate raster data
aggregate_raster.RdAggregate raster data using simple statistics and a grid (vector).
Arguments
- x
a terra object.
- by
a character(1). A column name in
x.- grid
A grid (polygons) 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.