rep: Replicate layers

Description Usage Arguments Value Examples

Description

Replicate layers in a SpatRaster

Usage

1
2
## S4 method for signature 'SpatRaster'
rep(x, ...)

Arguments

x

SpatRaster

...

arguments as in rep

Value

SpatRaster

Examples

1
2
3
4
5
s <- rast(system.file("ex/logo.tif", package="terra"))   
x <- rep(s, 2)
nlyr(x)
names(x)
x

terra documentation built on Aug. 20, 2021, 9:07 a.m.