Check Whether Image Contains NA Values
Checks whether any pixel values in a pixel image are NA
(meaning that the pixel lies outside the domain of definition of the
image).
## S3 method for class 'im' anyNA(x, recursive = FALSE)
x |
A pixel image (object of class |
recursive |
Ignored. |
The function anyNA
is generic: anyNA(x)
is a
faster alternative to any(is.na(x))
.
This function anyNA.im
is a method for the generic anyNA
defined for pixel images. It returns the value TRUE
if any of the pixel
values in x
are NA
, and
and otherwise returns FALSE
.
A single logical value.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.
anyNA(as.im(letterR))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.