EVOLUTION-MANAGER
Edit File: round.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: Integer 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 round {raster}"><tr><td>round {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Integer values</h2> <h3>Description</h3> <p>These functions take a single RasterLayer argument <code>x</code> and change its values to integers. </p> <p><code>ceiling</code> returns a RasterLayer with the smallest integers not less than the corresponding values of x. </p> <p><code>floor</code> returns a RasterLayer with the largest integers not greater than the corresponding values of x. </p> <p><code>trunc</code> returns a RasterLayer with the integers formed by truncating the values in x toward 0. </p> <p><code>round</code> returns a RasterLayer with values rounded to the specified number of digits (decimal places; default 0). </p> <h3>Details</h3> <p>see ?base::round </p> <h3>Value</h3> <p>a RasterLayer object </p> <h3>Methods</h3> <p>ceiling(x) floor(x) trunc(x, ...) round(x, digits = 0) </p> <dl> <dt>x</dt><dd><p>a RasterLayer object</p> </dd> <dt>digits</dt><dd><p>integer indicating the precision to be used</p> </dd> <dt>...</dt><dd><p>additional arguments</p> </dd> </dl> <h3>Examples</h3> <pre> r <- raster(ncol=10, nrow=10) values(r) <- runif(ncell(r)) * 10 s <- round(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>