title: Words matching in two columns using r
body: <p>I have two data frames in that DF1 is (word dictionary) and DF2 is sentences.I want to  make text matching in such a way that If word in DF1 matches to DF2 sentence(any word from sentence) then  output should be column with  yes if match or No if won't match data frames are as follow:</p>
  
  <p>(DF1) word dictionary:</p>
  
  <pre><code>DF1 &lt;- c("csi", "dsi", "market", "share", "improvement", "dealers", "increase")
  </code></pre>
  
  <p>(DF2)sentences:</p>
  
  <pre><code>DF2 &lt;- c("Customer satisfaction index improvement", "reduction in retail cycle", "Improve market share", "% recovery from vendor")
  </code></pre>
  
  <p>and output should be:</p>
  
  <p>Customer satisfaction index improvement                ( yes)</p>
  
  <p>reduction in retail cycle                                (no)</p>
  
  <p>Improve market share                                     (yes)</p>
  
  <p>% recovery from vendor                                    (no)</p>
  
  <p>note- yes and No is different column showing result of text matching
  Can anyone help .....thanks in advance</p>