powered by
The method is inherited from the RasterStack class. Postitions of layers are conserved in the output. (including missing layers)
RasterStack
# S4 method for RasterArray cellStats(x, stat, ...)
A set of the values matching the output of stat, organized the same way as the RasterArray.
stat
RasterArray
a RasterArray class object.
A function to be applied.
arguments passed to the cellStats function.
cellStats
data(dems) cellStats(dems, stat=mean, na.rm=TRUE)
Run the code above in your browser using DataLab