raster: 'Raster' methods for a 'RasterList-class' object.

raster,RasterList-methodR Documentation

Raster methods for a RasterList-class object.

Description

Raster methods for a RasterList-class object.

Usage

## S4 method for signature 'RasterList'
raster(x, FUN = NULL, ...)

Arguments

x

a valid RasterList-class object

FUN

if it not NULL a function is applied to all elements of the list slot in x.

...

further arguments

Value

a RasterLayer-class object

See Also

stack,RasterListApply

Examples


f <- system.file("external/test.grd", package="raster")
ur <- rasterList(raster(f),FUN=function(x,d){x+0:d},d=10)

r1 <- raster(ur)
r2 <- raster(ur,FUN=function(x){x[2]})


ecor/rasterList documentation built on Aug. 20, 2023, 12:41 p.m.