EVOLUTION-MANAGER
Edit File: flip.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: Flip</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 flip {raster}"><tr><td>flip {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Flip</h2> <h3>Description</h3> <p>Flip the values of a Raster* object by inverting the order of the rows (direction=y) or the columns direction='x'. </p> <h3>Usage</h3> <pre> flip(x, direction, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>Raster* object</p> </td></tr> <tr valign="top"><td><code>direction</code></td> <td> <p>Character. 'y' or 'x'; or 1 (=x) or 2 (=y)</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional arguments as for <code><a href="writeRaster.html">writeRaster</a></code></p> </td></tr> </table> <h3>Value</h3> <p>RasterLayer or RasterBrick </p> <h3>See Also</h3> <p> transpose: <code><a href="transpose.html">t</a></code>, <code><a href="rotate.html">rotate</a></code> </p> <h3>Examples</h3> <pre> r <- raster(nrow=18, ncol=36) m <- matrix(1:ncell(r), nrow=18) values(r) <- as.vector(t(m)) rx <- flip(r, direction='x') values(r) <- as.vector(m) ry <- flip(r, direction='y') </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>