setMinMax function

Compute min and max values

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.

setMinMax(x, ...)

Arguments

  • x: Raster object
  • ...: additional arguments, none implemented

Returns

Raster object

See Also

getValues

Examples

r <- raster(system.file("external/test.grd", package="raster")) r r <- setMinMax(r) r
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-03-28