EVOLUTION-MANAGER
Edit File: freq.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: Frequency table</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 freq {raster}"><tr><td>freq {raster}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Frequency table</h2> <h3>Description</h3> <p>Frequency table of the values of a RasterLayer. </p> <h3>Usage</h3> <pre> ## S4 method for signature 'RasterLayer' freq(x, digits=0, value=NULL, useNA='ifany', progress='', ...) ## S4 method for signature 'RasterStackBrick' freq(x, digits=0, value=NULL, useNA='ifany', merge=FALSE, progress='', ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>RasterLayer</p> </td></tr> <tr valign="top"><td><code>digits</code></td> <td> <p>non-negative integer for rounding the cell values. Argument is passed to <code>round</code> </p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p>numeric, logical or NA. An optional single value to only count the number of cells with that value</p> </td></tr> <tr valign="top"><td><code>useNA</code></td> <td> <p>character. What to do with NA values? Options are "no", "ifany", "always". See to <code><a href="../../base/html/table.html">table</a></code> </p> </td></tr> <tr valign="top"><td><code>progress</code></td> <td> <p>character to specify a progress bar. Choose from 'text', 'window', or ” (the default, no progress bar)</p> </td></tr> <tr valign="top"><td><code>merge</code></td> <td> <p>logical. If <code>TRUE</code> the list will be merged into a single data.frame</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>additional arguments (none implemented)</p> </td></tr> </table> <h3>Value</h3> <p>matrix (RasterLayer). List of matrices (one for each layer) or data.frame (if <code>merge=TRUE</code>) (RasterStack or RasterBrick) </p> <h3>See Also</h3> <p><code><a href="crosstab.html">crosstab</a> </code> and <code><a href="zonal.html">zonal</a> </code> </p> <h3>Examples</h3> <pre> r <- raster(nrow=18, ncol=36) values(r) <- runif(ncell(r)) r[1:5] <- NA r <- r * r * r * 5 freq(r) freq(r, value=2) s <- stack(r, r*2, r*3) freq(s, merge=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>