EVOLUTION-MANAGER
Edit File: as.character.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: Character representation of a Raster or Extent 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 as.character {raster}"><tr><td>as.character {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Character representation of a Raster or Extent object</h2> <h3>Description</h3> <p><code>as.character</code> returns a text (R code) representation of a Raster* or Extent object. The main purpose of this is to allow quick generation of objects to use in examples on, for example, stackoverflow.com. </p> <h3>Usage</h3> <pre> ## S4 method for signature 'Raster' as.character(x, ...) ## S4 method for signature 'Extent' as.character(x, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p> Raster* or Extent object </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p> additional arguments, none implemented </p> </td></tr> </table> <h3>Value</h3> <p>character </p> <h3>Examples</h3> <pre> r <- raster(ncol=3, nrow=3) values(r) <- 1:ncell(r) as.character(r) s <- stack(r, r) as.character(s) as.character(extent(s)) x <- as.character(s) eval(parse(text=x)) y <- as.character(extent(s)) eval(parse(text=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>