This function returns the unique values of the layers in a Raster* object.
Usage
# S4 method for RasterLayer,missing
unique(x, incomparables=FALSE, na.last=NA, progress="", ...)
# S4 method for RasterStackBrick,missing
unique(x, incomparables=FALSE, na.last=NA, progress="", ...)
Arguments
x
Raster object
incomparables
must be missing. The default value FALSE is used. See unique
na.last
logical. for controlling the treatment of NAs. If TRUE, missing values in the data are put last; if FALSE, they are put first; if NA, they are removed.
progress
character. Use "text" or "window" for a progress indicator