which.na: Determine Which Values are Missing Values

Description Usage Arguments Value Author(s) See Also Examples

Description

which.na returns an integer vector describing which values in the input vector, if any, are missing

Usage

1

Arguments

x

a data object

Value

integer vector containing indices of elements in x which are missing. If there are no missing values, the functions return an integer vector of length 0 ( numeric(0)).

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

See Also

is.na

Examples

1
2
3
x <- c(1, 4, NA, 0, 5)
which.na(x)
# [1] 3


Search within the muStat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.