nomatch: the value to be returned in the case when no match is found. Note that it is coerced to integer
incomparables: a vector of values that cannot be matched. Any value in x matching a value in this vector is assigned the nomatch value. For historical reasons, FALSE is equivalent to NULL
Returns
SpatRaster
See Also
app, match
Examples
r <- rast(nrows=10, ncols=10)values(r)<-1:100m <- match(r, c(5:10,50:55))n <- r %in% c(5:10,50:55)