sumrast: Sum list of SpatRaster objects.

View source: R/rfunctions.R

sumrastR Documentation

Sum list of SpatRaster objects.

Description

Sum list of SpatRaster objects.

Usage

sumrast(x, normalize = TRUE)

Arguments

x

List of SpatRaster objects.

normalize

If TRUE, then sum of solutions is normalized at a [0,1] scale.

Value

A SpatRaster object.

See Also

plot_sumrast

Examples

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))

prior3D documentation built on April 11, 2025, 5:39 p.m.