Learn R Programming

raster (version 3.6-11)

setMinMax: 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, ...)

Value

Raster object

Arguments

x

Raster object

...

additional arguments, none implemented

See Also

Examples

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

Run the code above in your browser using DataLab