Dear Nikhil and dear Robert, thanks a lot for your help. I first tried Nikhils function, it works well and helps me to learn how these functions work. Good to see that flipping bricks will be implemented in the new raster package. The raster package is a great piece of work. It makes all those expensive GIS systems almost useless for me, it's exactly what i was looking for for so many years..
I also tried the regression and correlation code and it works well. a huge thanks! Martin -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/questions-on-RasterStack-Brick-tp5553580p5557858.html Sent from the R-sig-geo mailing list archive at Nabble.com. _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo