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

Description Usage Arguments Details Value Author(s) Examples

View source: R/anyMissing.R

Description

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

Usage

1

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.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

Examples

1
2
3
x <- rnorm(n=1000)
x[seq(300,length(x),by=100)] <- NA
stopifnot(anyMissing(x) == any(is.na(x)))

turaganitesh/testbiocpackage1234 documentation built on July 4, 2020, 12:57 a.m.