raster (version 1.0.0-1)

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)

Arguments

x
A Raster* object

Value

  • a Raster* object

See Also

values

Examples

Run this code
r <- raster(system.file("pictures/Rlogo.jpg", package="rgdal"))
r
r <- setMinMax(r)
r

Run the code above in your browser using DataCamp Workspace