sumrast {prior3D} | R Documentation |
Sum list of SpatRaster objects.
sumrast(x, normalize = TRUE)
x |
List of SpatRaster objects. |
normalize |
If |
A SpatRaster object.
set.seed(42)
x <- terra::rast(matrix(rbinom(100, 1, 0.2), nrow=10))
y <- terra::rast(matrix(rbinom(100, 1, 0.8), nrow=10))
sumrast(list(x, y))