rep {terra} | R Documentation |
Replicate layers
Description
Replicate layers in a SpatRaster
Usage
## S4 method for signature 'SpatRaster'
rep(x, ...)
Arguments
x |
SpatRaster |
... |
arguments as in |
Value
SpatRaster
Examples
s <- rast(system.file("ex/logo.tif", package="terra"))
x <- rep(s, 2)
nlyr(x)
names(x)
x
[Package terra version 1.7-78 Index]