Examples for 'terra::match'


Value matching for SpatRasters

Aliases: match match,SpatRaster-method %in% %in%,SpatRaster-method

Keywords: spatial methods

### ** Examples

r <- rast(nrows=10, ncols=10)
values(r) <- 1:100
m <- match(r, c(5:10, 50:55))
n <- r %in% c(5:10, 50:55)

[Package terra version 1.5-34 Index]