setMinMax: Compute min and max values

Description Usage Arguments Value See Also Examples

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

1

Arguments

x

A Raster* object

Value

a Raster* object

See Also

getValues

Examples

1
2
3
4
5
6
 
r <- raster(system.file("external/test.grd", package="raster"))
r
r <- setMinMax(r)
r
	

raster documentation built on May 29, 2017, 3:27 p.m.