EVOLUTION-MANAGER
Edit File: cv.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: Coefficient of variation</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 cv {raster}"><tr><td>cv {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Coefficient of variation</h2> <h3>Description</h3> <p>Compute the coefficient of variation (expressed as a percentage). If there is only a single value, <code>sd</code> is <code>NA</code> and <code>cv</code> returns <code>NA</code> if <code>aszero=FALSE</code> (the default). However, if (<code>aszero=TRUE</code>), <code>cv</code> returns <code>0</code>. </p> <h3>Usage</h3> <pre> ## S4 method for signature 'ANY' cv(x, ..., aszero=FALSE, na.rm = FALSE) ## S4 method for signature 'Raster' cv(x, ..., aszero=FALSE, na.rm = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>A vector of numbers (typically integers for modal), or a Raster* object</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional (vectors of) numbers, or Raster objects</p> </td></tr> <tr valign="top"><td><code>aszero</code></td> <td> <p>logical. If <code>TRUE</code>, a zero is returned (rather than an NA) if the cv of single value is computed</p> </td></tr> <tr valign="top"><td><code>na.rm</code></td> <td> <p>Remove (ignore) NA values</p> </td></tr> </table> <h3>Value</h3> <p>vector or RasterLayer </p> <h3>Examples</h3> <pre> data <- c(0,1,2,3,3,3,3,4,4,4,5,5,6,7,7,8,9,NA) cv(data, na.rm=TRUE) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>