powered by
Raster
RasterList-class
Raster methods for a RasterList-class object.
# S4 method for RasterList raster(x, FUN = NULL, ...)
a RasterLayer-class object
RasterLayer-class
a valid RasterList-class object
if it not NULL a function is applied to all elements of the list slot in x.
NULL
list
x
further arguments
stack,RasterListApply
stack
RasterListApply
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]})
Run the code above in your browser using DataLab