rep {ursa}R Documentation

Replicate bands of raster image.

Description

rep for object of class ursaRaster creates new ursaRaster objects with repitition of original band sequence.

Usage

## S3 method for class 'ursaRaster'
rep(x, ...)

Arguments

x

Object of class ursaRaster

...

Further arguments to be passed to or from other methods. Keywords:

times

Positive integer. Number of times to repeat each band.

If argument has no name, then times is assumpted.

Value

Object of class ursaRaster.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

c for ursaRaster.

Examples

session_grid(NULL)
session_grid(regrid(mul=1/4))
a <- ursa_dummy(nband=3)
print(a)
b1 <- rep(a,by=2)
print(b1)
b2 <- rep(a,length=5)
print(b2)
b3 <- rep(a[3],3)
print(b3)

[Package ursa version 3.10.4 Index]