zone_by_weights: Execute Zonal Stats by Weight Grid

View source: R/weights.R

zone_by_weightsR Documentation

Execute Zonal Stats by Weight Grid

Description

execute

Usage

zone_by_weights(data, w, ID, fun = "mean", subds = 0, ...)

Arguments

data

SpatRaster or file path

w

weight grid

ID

the grouping ID

fun

summarization function

subds

subdatasets to extract

extra

extra arguments to be passed to fun

Value

data.table


mikejohnson51/zonal documentation built on Aug. 19, 2024, 12:56 p.m.