setMinMax

0th

Percentile

Compute min and max values

The minimum and maximum value of a RasterLayer are computed (from a file on disk if necessary) and stored in the returned Raster* object.

Keywords
spatial , methods
Usage
setMinMax(x)
Arguments
x

A Raster* object

Value

a Raster* object

See Also

getValues

Aliases
  • setMinMax,RasterLayer-method
  • setMinMax,RasterStack-method
  • setMinMax,RasterBrick-method
  • setMinMax
Examples
# NOT RUN {
r <- raster(system.file("external/test.grd", package="raster"))
r
r <- setMinMax(r)
r
	
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.