powered by
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)
A Raster* object
Raster*
a Raster* object
getValues
# NOT RUN { r <- raster(system.file("external/test.grd", package="raster")) r r <- setMinMax(r) r # }
Run the code above in your browser using DataLab