anyMissing

Checks if there are any missing values in an object or not

Checks if there are any missing values in an object or not.

Keywords
logic, iteration
Usage
anyMissing(x=NULL)
Arguments
x
A vector.
Details

The implementation of this method is optimized for both speed and memory.

Value

Returns TRUE if a missing value was detected, otherwise FALSE.

Aliases
  • anyMissing
Examples
x <- rnorm(n=1000)
x[seq(300,length(x),by=100)] <- NA
stopifnot(anyMissing(x) == any(is.na(x)))
Documentation reproduced from package Biobase, version 2.26.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.