Learn R Programming

MaskJointDensity (version 1.0)

anyNA: Checks for NA in a vector

Description

Some users have this as an internal function, others do not

Usage

anyNA(x)

Arguments

x

A vector that one checks for any NA values.

Value

TRUE if any NA values are detected in x. Otherwise FALSE.

References

no references

Examples

Run this code
# NOT RUN {
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
    any(is.na(x))
  }
# }

Run the code above in your browser using DataLab