title: how find or match one data frame as a subset(full) into another data frame in R?
body: <p>I have two data frames df1 and df2 given below.
  <code>df1</code> is</p>
  
  <pre><code>  c1       c2   c3  c4
     B  2.34000  1.00  I
     A 14.43000  2.10  J
     D  3.45515  1.00  K
     B  2.50000  2.09   
     A  2.44000  1.10  K
     K  5.00000  1.09  L
  </code></pre>
  
  <p><code>df2</code> is:</p>
  
  <pre><code>  c1    c2   c3
     B  2.34  1.00
     A 14.43  2.10
     D  3.43  1.00
     B  2.50  2.09
     E  5.00  1.09
     A  2.44  1.10
  </code></pre>
  
  <p>the requirement here is like this: there is matching(or comparison) between these two data frames. if <code>df2</code> completely found (<strong>that means the content of <code>df2</code> matched with any subset of <code>df1</code> irrespective of the order</strong>) in <code>df1</code>(either exactly matched with <code>df2</code> or subset of <code>df1</code> matched with <code>df2</code>) then output is <code>true</code>. If not matched then return <code>false</code>. </p>
  
  <p><strong>I tried following methods:</strong></p>
  
  <pre><code>1. left_join(df2,df1)
  2. merge(df2,df1)
  3. inner_join(df2,df1)
  4. dd1[dd1$c1 %in% dd$c1,]
  </code></pre>
  
  <p>all the above methods give that data which is common in between both but not give results as per requirements. </p>
  
  <p>Please suggest me some solution for the same.</p>