Statistics across cells in a RasterArray object
The method is inherited from the RasterStack
class. Postitions of layers are conserved in the output. (including missing layers)
## S4 method for signature 'RasterArray' cellStats(x, stat, ...)
x |
a |
stat |
A function to be applied. |
... |
arguments passed to the |
A set of the values matching the output of stat
, organized the same way as the RasterArray
.
data(dems) cellStats(dems, stat=mean, na.rm=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.