title: How to extract all the rows if a level in one column contains all the levels of another column in R?
body: <p>I have the following data</p>
  
  <pre><code>    ID       INDUSTRY        PRODUCT                  
    625109    PersonalCare     Neolone Preservatives    
    199672    PersonalCare     Neolone Preservatives     
    227047    Pharma           Optiphen
    186117    Food             Sasol BHT
    625109    PersonalCare     Optiphen
    227047    Food             Neolone Preservatives
  </code></pre>
  
  <p>I want to extract rows if an ID contains both the products Neolone Preservatives and Optiphen. </p>
  
  <p>Expected result</p>
  
  <pre><code>  ID       INDUSTRY         PRODUCT
   625109    PersonalCare     Neolone Preservatives
   227047    Pharma           Optiphen
   625109    PersonalCare     Optiphen
   227047    Food             Neolone Preservatives
  </code></pre>
  
  <p>The IDs 625109 and 227047 alone contain both the products and hence extracted. How can I do this in R?     </p>