setMinMax | 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
getValues
r <- raster(system.file("external/test.grd", package="raster"))
r
r <- setMinMax(r)
r
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.