zone.sum | R Documentation |
This function sums raster values within zones
zone.sum(zone.r, value.r, exclude.anthro = TRUE, na.val = "na")
zone.r |
zonal raster |
value.r |
value raster to be summarized within zones |
exclude.anthro |
Logical; should NLCD anthropogenic habitats be excluded? Defaults to FALSE |
na.val |
NA value in value raster; defaults to "na" |
named vector (names = zones, values = sum of cell values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.