powered by
Sum list of SpatRaster objects.
sumrast(x, normalize = TRUE)
A SpatRaster object.
List of SpatRaster objects.
If TRUE, then sum of solutions is normalized at a \([0,1]\) scale.
TRUE
plot_sumrast
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))
Run the code above in your browser using DataLab