anyMissing | R Documentation |
Checks if there are any missing values in an object or not.
anyMissing(x=NULL)
x |
A |
The implementation of this method is optimized for both speed and memory.
Returns TRUE
if a missing value was detected, otherwise FALSE
.
Henrik Bengtsson (http://www.braju.com/R/)
x <- rnorm(n=1000)
x[seq(300,length(x),by=100)] <- NA
stopifnot(anyMissing(x) == any(is.na(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.