EVOLUTION-MANAGER
Edit File: zvalues.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: Get or set z-values</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 z-values {raster}"><tr><td>z-values {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get or set z-values</h2> <h3>Description</h3> <p>Initial functions for a somewhat more formal approach to get or set z values (e.g. time) associated with layers of Raster* objects. In development. </p> <h3>Usage</h3> <pre> setZ(x, z, name='time') getZ(x) </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>z</code></td> <td> <p>vector of z values of any type (e.g. of class 'Date')</p> </td></tr> <tr valign="top"><td><code>name</code></td> <td> <p>character label</p> </td></tr> </table> <h3>Value</h3> <p>setZ: Raster* object </p> <p>getZ: vector </p> <h3>Examples</h3> <pre> r <- raster(ncol=10, nrow=10) s <- stack(lapply(1:3, function(x) setValues(r, runif(ncell(r))))) s <- setZ(s, as.Date('2000-1-1') + 0:2) s getZ(s) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>