setMinMax {raster} | R Documentation |
The minimum and maximum value of a RasterLayer are computed (from a file on disk if necessary) and stored in the returned Raster* object.
setMinMax(x, ...)
x |
Raster object |
... |
additional arguments, none implemented |
Raster object
r <- raster(system.file("external/test.grd", package="raster"))
r
r <- setMinMax(r)
r