title: Delete rows from dataframe based on column value in R
body: <pre><code>Sample_ID&lt;-c(&quot;a1&quot;,&quot;a2&quot;,&quot;a3&quot;,&quot;a4&quot;,&quot;a5&quot;,&quot;a6&quot;)
  Heart_attack&lt;-c(&quot;1&quot;, &quot;0&quot;, &quot;1&quot;, &quot;1&quot;, &quot;0&quot;, &quot;2&quot;)
  DF&lt;-data.frame(Sample_ID,Heart_attack)
  </code></pre>
  <p>I want to exclude from my data frame, all the samples having &quot;0&quot; in Heart_attack.How to do that?</p>