compute_zonal_stats: Compute zonal statistics from a raster layer

View source: R/raster_computation.R

compute_zonal_statsR Documentation

Compute zonal statistics from a raster layer

Description

This function is a frontend for GRASS module 'v.rast.stats'

Usage

compute_zonal_stats(vect, rast, name, gisbase)

Arguments

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

Value

a 'SpatVector' with attribute table filled with statistics from the raster layer


VincentGodard/gtbox documentation built on Sept. 4, 2022, 3:46 a.m.