compute_zonal_stats.Rd
This function is a frontend for GRASS module `v.rast.stats`
compute_zonal_stats(vect, rast, name, gisbase)
vect | a `SpatVector` defining the locations/areas where the calculation will take place |
---|---|
rast | a `SpatRaster` representing the raster |
name | a prefix for the statistics columns |
gisbase | The directory path to GRASS binaries and libraries, containing bin and lib sub-directories among others |
a `SpatVector` with attribute table filled with statistics from the raster layer