powered by
Replicate layers in a SpatRaster
# S4 method for SpatRaster rep(x, ...)
SpatRaster
arguments as in rep
rep
s <- rast(system.file("ex/logo.tif", package="terra")) x <- rep(s, 2) nlyr(x) names(x) x
Run the code above in your browser using DataLab