Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cellStats-RasterArray-method

Statistics across cells in a RasterArray object


Description

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

Usage

## 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

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

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.