For RasterLayer objects, I think you need to use 'maxValue' and 'minValue' instead of max and min -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Error-message-in-calc-tp7584795p7584796.html Sent from the R-sig-geo mailing list archive at Nabble.com.