I need to do partial string matching R:
eg: str1<-"here we go"
str2<-"here we go another way"
I need to do something like grep(str1,str2) ,i.e. the output should return whether str1 is in str2 or not. One way to do is grep but grep is running very slow. How could this be done in a faster way?
Thanks
Using
grepl
for example. Here a wrapper function: