zone_by_weights | R Documentation |
execute
zone_by_weights(data, w, ID, fun = "mean", subds = 0, ...)
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 |
data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.