R/weights.R
zone_by_weights.Rd
execute
zone_by_weights(data, w, ID, fun = "mean", subds = 0, ...)
SpatRaster or file path
weight grid
the grouping ID
summarization function
subdatasets to extract
additional arguments passed on to the lapply summary in DT summary
data.table