execute

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

...

additional arguments passed on to the lapply summary in DT summary

Value

data.table