not.na | R Documentation |
Shortcut method to avoid the two-step !is.na(x)
## S4 method for signature 'SpatRaster'
not.na(x, falseNA=FALSE, filename="", ...)
x |
SpatRaster |
falseNA |
logical. If |
filename |
character. Output filename |
... |
additional arguments for writing files as in |
SpatRaster
Compare-methods
r <- rast(ncols=5, nrows=5, vals=1, ext=c(0,1,0,1))
r[10:20] <- NA
x <- not.na(r)
y <- not.na(r, falseNA=TRUE)
unique(values(c(x, y)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.