I have two data frames in which I need to match column A of Input data frame with Lookup data frame and find the partial matching elements. My resulting data frame will be as data frame Result.
A=c("Green|Red|Yellow","Blue","Orange|Peach","Violet")
B=c(23,41,65,89)
Input=data.frame(A,B)
Matches=c("Green","Orange","Red","Yellow","Peach")
Lookup=data.frame(Matches)
Matched=c("Yes","Yes","Yes","No")
Result=data.frame(A,B,Matched)
If someone know the solution pleas help.