[R-sig-Geo] multivariate output with predict() on rasterStack

Häring, Tim (LWF) Tim.Haering at lwf.bayern.de
Wed May 25 17:50:39 CEST 2011


Hello,

According to the help file, the predict() function in the raster package creates a RasterLayer. Since a RasterLayer cannot store more than one layer like a RasterStack, I wonder if it is possible to use the predict() functions when the output of the prediction is multivariate? For example when predicting the class probabilities. Is it possible to create a RasterStack with the predict function, in which the probabilies for different classes are stored in single layers?

Thank you.
TIM

---------------- 
Tim Häring
Bavarian State Institute of Forest Research 
Department of Soil and Climate
Hans-Carl-von-Carlowitz-Platz 1
D-85354 Freising

E-Mail: tim.haering at lwf.bayern.de
http://www.lwf.bayern.de



More information about the R-sig-Geo mailing list