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