Learn R Programming

splus2R (version 1.0-1)

is.missing: Check for missing values

Description

Check to see whether the input is either NA or a vector of length 0.

Usage

is.missing(x)

Arguments

x
object to check.

Value

  • tRUE if the input is a vector of length 0; is.na(x) otherwise.

concept

splus

See Also

anyMissing, as.rectangular, colIds, colMaxs, colMedians, colMins, colRanges, colStdevs, colVars, deparseText, ifelse1, is.numeric.atomic.vector, is.rectangular, is.zero, lowerCase, oldUnclass, numCols, numRows, peaks, positions, rowIds, rowMaxs, rmvnorm, stdev, subscript2d, upperCase, vecnorm, which.na.

Examples

Run this code
is.missing(numeric(0))
is.missing(NA)
is.missing(c(1,2,3,NA,5))

Run the code above in your browser using DataLab