cellStats-RasterArray-method: Statistics across cells in a RasterArray object

Description Usage Arguments Value Examples

Description

The method is inherited from the RasterStack class. Postitions of layers are conserved in the output. (including missing layers)

Usage

1
2
## S4 method for signature 'RasterArray'
cellStats(x, stat, ...)

Arguments

x

a RasterArray class object.

stat

A function to be applied.

...

arguments passed to the cellStats function.

Value

A set of the values matching the output of stat, organized the same way as the RasterArray.

Examples

1
2
data(dems)
cellStats(dems, stat=mean, na.rm=TRUE)

chronosphere documentation built on April 19, 2021, 1:07 a.m.