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 element h is in the list I am using match in this way:
if ("h" %in% v){do something}
How I can get the position of where it finds the element in the list?
Thanks
If you want to know the position use
whichNote that
lis a vector, not a list as you mentioned.