Is there an R function for finding the index of an element in a vector? Is there an R function for finding the index of an element in a vector? r r