powered by
cpos
substring.location
cpos(str,sub,start=1) substring.location(str, sub, restrict)
cpos("Baldrian","a",5) # 8 cpos("Baldrian","B",15) # NA substring.location("In,theese,housees,there,are,rats","ees") #$first [1] 6 15 #$last [1] 8 17
Run the code above in your browser using DataLab