I have a dataframe with first column as the name of the variables i want to match with. This column has 797 observations and is a character type. I have another vector which is again character type and has 31 rows. i want to return the indices of the column of data frame (the one with 787 observations) which matches with the small character vector.

I tried some code using a for loop. but not able to get what i wanted

```
vec_list<-vector()

for (i in inter_2004_05[,1]){
  for(j in 1:nrow(test_t)){
   if(inter_2004_05[i,1]=test_t[j]){
    vec_list[i]= i
   }
  }
 }

```

now `` is the vector of words that I want to match. What I expect is that we should check for each element in the first column of the data frame (`inter_2004_05[,1]`) has any match in the character vector (`test_t`). I want the index of `inter_2004_05[, 1]` where it found a match in `test_t`