NOTE: which() should be used instead of this method
unless you are running R (< 2.11.0), for which this method is faster
than which() for logical vectors, especially when there
are no missing values.
"whichVector"(x, na.rm=TRUE, use.names=TRUE, ...)TRUE, the names attribute is preserved,
otherwise it is not return.which() was made approx. 10 times
faster via a native implementation. Because of this, this
method is of little use and approximately 3 times slower.
However, for earlier version of R, this method is still
significantly faster. For example,
simple comparison on R v2.7.1 on Windows XP, show that
this implementation can be more than twice as fast as
which(), especially when there are no missing
value (and na.rm=FALSE) is used.which()