cut

0th

Percentile

Convert values to classes

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.

Keywords
spatial
Usage
cut(x, ...)
Arguments
x

A Raster* object

...

additional arguments. See cut

Value

Raster* object

See Also

subs, reclassify, calc

Aliases
  • cut
  • cut,Raster-method
Examples
# NOT RUN {
r <- raster(ncols=36, nrows=18)
values(r) <- rnorm(ncell(r)) 
breaks <- -2:2 * 3
rc <- cut(r, breaks=breaks)
# }
Documentation reproduced from package raster, version 3.3-7, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.