is.na | R Documentation |
The "Extract" function is.na
creates mask for each band. In this mask value 1L
corresponds to NA
value in the source image, and value NA
corresponds non-missing values in the source image. The "Replacement" function is.na<-
assigns numerical value for cells with ‘no data’ value.
## S3 method for class 'ursaRaster'
is.na(x)
## S3 method for class 'ursaRaster'
is.infinite(x)
## S3 method for class 'ursaRaster'
is.nan(x)
## S3 replacement method for class 'ursaRaster'
is.na(x) <- value
x |
Object of class |
value |
Numeric. |
These functions are corresponded to local operators of map algebra.
"Extract" functions is.na
, is.infinite
, is.nan
return object of class ursaRaster
.
"Replacement" function is.na<-
modifies object of class ursaRaster
.
Nikita Platonov platonov@sevin.ru
session_grid(NULL)
session_grid(regrid(mul=1/4))
a <- ursa_dummy(nband=2,min=0,max=100)
print(a)
print(is.na(a))
a2 <- ursa_new(nband=2)
print(a2)
print(is.na(a2))
a3 <- a
a3[a3<30 | a3>70] <- NA
print(a3)
print(is.na(a3))
is.na(a3) <- 200
print(a3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.