I have two data frames. First has 7 columns and the second has 2 columns. The common column name is "flavor". I want to merge these two data frames but the problem is that the 2nd data frame only contains the subset of 1st data frame in column "flavor". For example,
df1$flavor <- c("mango|grapes|watermelon", "coffee|tea", "beer|alcohol|wine")
df2$flavor <- c("mango", "tea", "wine")
When I am trying to merge the both data frames, I am loosing few rows. So how to merge both data frames without effecting the rows and the columns.