Unique values
unique.RdThis function returns the unique values in a RasterLayer object or the unique combinations of the layers in a multilayer object.
Usage
# S4 method for class 'RasterLayer,missing'
unique(x, incomparables=FALSE, na.last=NA, progress="", ...)
# S4 method for class 'RasterStackBrick,missing'
unique(x, incomparables=FALSE, na.last=NA, progress="", ...)Arguments
- x
Raster object
- incomparables
must be missing. The default value
FALSEis used. Seeunique- na.last
logical. for controlling the treatment of
NAs. IfTRUE, missing values in the data are put last; ifFALSE, they are put first; ifNA, they are removed.- progress
character. Use "text" or "window" for a progress indicator
- ...
additional arguments. as in
unique