Skip to content
Prev 4984 / 29559 Next

Calculating descriptive stats from many maps

Dear Rainer,

This is of course possible in R, and can be done in several ways:

1) for example, you can derive the average value using the rowSums function:
You could also loop the sd, mean and quantile function over a range of cells:
...
This could take a lot of time!

2) if your maps are rather large, try also using the SAGA function:
SAGA CMD 2.0.3
library path:   C:/Progra~1/saga_vc/modules
library name:   geostatistics_grid
module name :   Statistics for Grids

This is probably the fastest method you can use.

HTH

T. Hengl