powered by
Combine SpatRaster objects (similar to raster:: stack)
raster::
stack
# S4 method for SpatRaster c(x, ...)
SpatRaster
SpatRaster objects to be combined with x
x
# NOT RUN { r <- rast(nrow=5, ncol=9) values(r) <- 1:ncell(r) x <- c(r, r*2, r*3) # }
Run the code above in your browser using DataLab