[r] How to find row number of a value in R code