EVOLUTION-MANAGER
Edit File: quantile.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: Raster quantiles</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 quantile {raster}"><tr><td>quantile {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Raster quantiles</h2> <h3>Description</h3> <p>Compute quantiles for the cell values of a RasterLayer. If you want to compute quantiles for each cell across a number of layers, you can use <code><a href="calc.html">calc</a>(x, fun=quantile)</code>. </p> <h3>Usage</h3> <pre> quantile(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>...</code></td> <td> <p>Additional arguments: <code>na.rm=TRUE</code>, <code>ncells=NULL</code>, and additional arguments to the stats::quantile function, see <code><a href="../../stats/html/quantile.html">quantile</a></code></p> </td></tr> </table> <p>ncells can be used to set the number of cells to be sampled, for very large raster datasets. </p> <h3>Value</h3> <p>A vector of quantiles </p> <h3>See Also</h3> <p><code><a href="density.html">density</a></code>, <code><a href="cellStats.html">cellStats</a></code> </p> <h3>Examples</h3> <pre> r <- raster(ncol=100, nrow=100) values(r) <- rnorm(ncell(r), 0, 50) quantile(r) quantile(r, probs = c(0.25, 0.75), type=7,names = FALSE) </pre> <hr /><div style="text-align: center;">[Package <em>raster</em> version 3.3-13 <a href="00Index.html">Index</a>]</div> </body></html>