anyNA.im

0th

Percentile

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).

Keywords
methods, spatial
Usage
# S3 method for im
anyNA(x, recursive = FALSE)
Arguments
x

A pixel image (object of class "im").

recursive

Ignored.

Details

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.

Value

A single logical value.

See Also

im.object

Aliases
  • anyNA.im
Examples
# NOT RUN {
  anyNA(as.im(letterR))
# }
Documentation reproduced from package spatstat, version 1.59-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.