EVOLUTION-MANAGER
Edit File: alignExtent.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: Align an extent (object of class Extent)</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 alignExtent {raster}"><tr><td>alignExtent {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Align an extent (object of class Extent)</h2> <h3>Description</h3> <p>Align an Extent object with the (boundaries of the) cells of a Raster* object </p> <h3>Usage</h3> <pre> alignExtent(extent, object, snap='near') </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>extent</code></td> <td> <p>Extent object</p> </td></tr> <tr valign="top"><td><code>object</code></td> <td> <p>Raster* object</p> </td></tr> <tr valign="top"><td><code>snap</code></td> <td> <p>Character. One of 'near', 'in', or 'out', to determine in which direction the extent should be aligned. To the nearest border, inwards or outwards</p> </td></tr> </table> <h3>Details</h3> <p>Aligning an Extent object to another object assures that it gets the same origin and resolution. This should only be used to adjust objects because of imprecision in the data. alignExtent should not be used to force data to match that really does not match (use e.g. <code><a href="resample.html">resample</a></code> or (dis)aggregate for this). </p> <h3>Value</h3> <p>Extent object </p> <h3>See Also</h3> <p><code><a href="extent.html">extent</a></code>, <code><a href="drawExtent.html">drawExtent</a></code>, <code><a href="Extent-class.html">Extent-class</a></code> </p> <h3>Examples</h3> <pre> r <- raster() e <- extent(-10.1, 9.9, -20.1, 19.9) ea <- alignExtent(e, r) e extent(r) ea </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>