EVOLUTION-MANAGER
Edit File: shift.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: Shift</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 shift {raster}"><tr><td>shift {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Shift</h2> <h3>Description</h3> <p>Shift the location of a Raster* of vector type Spatial* object in the x and/or y direction </p> <h3>Usage</h3> <pre> ## S4 method for signature 'Raster' shift(x, dx=0, dy=0, filename='', ...) ## S4 method for signature 'SpatialPolygons' shift(x, dx=0, dy=0, ...) ## S4 method for signature 'SpatialLines' shift(x, dx=0, dy=0, ...) ## S4 method for signature 'SpatialPoints' shift(x, dx=0, dy=0, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>Raster* or Spatial* object</p> </td></tr> <tr valign="top"><td><code>dx</code></td> <td> <p>numeric. The shift in horizontal direction</p> </td></tr> <tr valign="top"><td><code>dy</code></td> <td> <p>numeric. The shift in vertical direction</p> </td></tr> <tr valign="top"><td><code>filename</code></td> <td> <p>character file name (optional)</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>if <code>x</code> is a Raster* object: additional arguments as for <code><a href="writeRaster.html">writeRaster</a></code> </p> </td></tr> </table> <h3>Value</h3> <p>Same object type as <code>x</code> </p> <h3>See Also</h3> <p><code><a href="flip.html">flip</a></code>, <code><a href="rotate.html">rotate</a></code>, and the elide function in the maptools package </p> <h3>Examples</h3> <pre> r <- raster() r <- shift(r, dx=1, dy=-1) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>