title: Removing rows from R data frame using the for loop with if statement
body: <pre><code>df &lt;- data.frame(
   V1 = c(1,3,3,5,5,6),
   V2 = c(19,19,38,19,38,19),
   V3 = c(1,3,1,7,2,10)
  )
  </code></pre>
  
  <p>How can I remove the rows where <em>V2</em> is an odd number <strong>using the for loop with if statement</strong>?</p>