I am using match for getting if an element is in a list. For example my list is:
c(\"a\",\"b\",\"h\",\"e\"...) and so on
if I want to see
If you want to know the position use which
which
l <- c("a","b","h","e") which(l=='h') [1] 3 # It'll give you the position, 'h' is the third element of 'l'
Note that l is a vector, not a list as you mentioned.
l