cut | R Documentation |
Cut uses the base function cut
to classify the values of a Raster* object according to which interval they fall in. The intervals are defined by the argument breaks
. The leftmost interval corresponds to level one, the next leftmost to level two and so on.
cut(x, ...)
x |
A Raster* object |
... |
additional arguments. See cut |
Raster* object
subs, reclassify, calc
r <- raster(ncols=36, nrows=18)
values(r) <- rnorm(ncell(r))
breaks <- -2:2 * 3
rc <- cut(r, breaks=breaks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.