View source: R/raster_computation.R
compute_zonal_stats | R Documentation |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.