setMinMax: Compute min and max values

setMinMaxR Documentation

Compute min and max values

Description

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

Usage

setMinMax(x, ...)

Arguments

x

Raster object

...

additional arguments, none implemented

Value

Raster object

See Also

getValues

Examples

 
r <- raster(system.file("external/test.grd", package="raster"))
r
r <- setMinMax(r)
r

rspatial/raster documentation built on Feb. 12, 2024, 6:27 a.m.