[R] Return a Vector of Positions

hadley wickham h.wickham at gmail.com
Tue Jan 10 18:59:35 CET 2006

> (2) Is there a more simpler way to build the vector of positions (versus
> using append in a loop, as above), using functions such as match() and
> apply()?

How about
which.na <- function(x) which(is.na(x))


More information about the R-help mailing list