EVOLUTION-MANAGER
Edit File: ncell.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: Number or rows, columns, and cells of a Raster* object</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 ncell {raster}"><tr><td>ncell {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Number or rows, columns, and cells of a Raster* object</h2> <h3>Description</h3> <p>Get the number of rows, columns, or cells of a Raster* object. </p> <h3>Usage</h3> <pre> ncol(x) nrow(x) ncell(x) ncol(x, ...) <- value nrow(x, ...) <- value </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>a Raster object</p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p>row or column number (integer > 0)</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional arguments. None implemented</p> </td></tr> </table> <h3>Value</h3> <p>Integer </p> <h3>See Also</h3> <p><code><a href="dimensions.html">dim</a>, <a href="extent.html">extent</a></code>, <a href="resolution.html">res</a> </p> <h3>Examples</h3> <pre> r <- raster() ncell(r) ncol(r) nrow(r) dim(r) nrow(r) <- 18 ncol(r) <- 36 # equivalent to dim(r) <- c(18, 36) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>