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 RasterArray class object.
RasterArray
A function to be applied.
arguments passed to the cellStats function.
cellStats
A set of the values matching the output of stat, organized the same way as the RasterArray.
stat
# NOT RUN { data(dems) cellStats(dems, stat=mean, na.rm=TRUE) # }
Run the code above in your browser using DataLab