whichforlist: Auxiliary function: which
for lists
Description
Auxiliary function that makes it possible to use which
with
a list.
Usage
whichforlist(vector, obj)
Arguments
vector
the vector for which we want to check the entries of
obj
the value for which we want the vector to match on.
Value
a vector of positions where the elements in vector
are equal to obj
.