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