which.na {muS2RC} | R Documentation |
which.na returns an integer vector describing which values in the input vector, if any, are missing
which.na(x)
x |
a data object |
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)).
Knut M. Wittkowski kmw@rockefeller.edu
x <- c(1, 4, NA, 0, 5) which.na(x) # [1] 3