powered by
Combines sources within a SpatRaster object (that are in memory, or from the same file) to allow for faster processing.
Or combine subdatsets into a SpatRaster.
# S4 method for SpatRaster collapse(x)# S4 method for SpatRasterDataset collapse(x)
# S4 method for SpatRasterDataset collapse(x)
SpatRaster or SpatRasterDataset
SpatRaster
# NOT RUN { r <- rast(nrow=5, ncol=9, vals=1:45) x <- c(r, r*2, r*3) x collapse(x) # }
Run the code above in your browser using DataLab