EVOLUTION-MANAGER
Edit File: extremeValues.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Minimum and maximum values</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for extremeValues {raster}"><tr><td>extremeValues {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Minimum and maximum values</h2> <h3>Description</h3> <p>Returns the minimum or maximum value of a RasterLayer or layer in a RasterStack </p> <h3>Usage</h3> <pre> minValue(x, ...) maxValue(x, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>RasterLayer or RasterStack object</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional argument: layer number (for RasterStack or RasterBrick objects) </p> </td></tr> </table> <h3>Details</h3> <p>If a Raster* object is created from a file on disk, the min and max values are often not known (depending on the file format). You can use <code><a href="setMinMax.html">setMinMax</a></code> to set them in the Raster* object. </p> <h3>Value</h3> <p>a number </p> <h3>Examples</h3> <pre> r <- raster() r <- setValues(r, 1:ncell(r)) minValue(r) maxValue(r) r <- setValues(r, round(100 * runif(ncell(r)) + 0.5)) minValue(r) maxValue(r) r <- raster(system.file("external/test.grd", package="raster")) minValue(r) maxValue(r) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>