diversityStack {voluModel} | R Documentation |
Diversity stack
Description
Takes list of rasters of species distributions (interpreted as 1 = presence, 0 = absence), which do not have to have the same extents, and stack them to create an estimate of species richness that matches the extent and resolution of a template.
Usage
diversityStack(rasterList, template)
Arguments
rasterList |
A |
template |
A |
Value
A SpatRaster
Examples
library(terra)
rast1 <- rast(ncol=10, nrow=10)
values(rast1) <- rep(0:1, 50)
rast2 <- rast(ncol=10, nrow=10)
values(rast2) <- c(rep(0, 50), rep(1,50))
rastList <- list(rast1, rast2)
result <- diversityStack(rasterList = rastList,
template = rast2)
result
plot(result)
[Package voluModel version 0.2.1 Index]