title: R How to delete selected row in data frame
body: <p>How to delete selected Rows in R.</p>
  
  <p>I have Data frame (stock) like give below</p>
  
  <pre><code>100, A, B
  101, B, C 
  102, A, B
  103, B, C 
  104, A, B
  105, B, C 
  </code></pre>
  
  <p>And I have vector (vec) list like given below. </p>
  
  <pre><code>101
  104
  106
  </code></pre>
  
  <p>Want to delete all rows in data frame that are  present in the vector list. </p>
  
  <p>I tried to achieve the same with subset function but I get error/ warning </p>
  
  <pre><code>subset(stock,stock$col1 == vec)
  
  Warning messages:
  1: In is.na(e1) | is.na(e2) :
  longer object length is not a multiple of shorter object length
  2: In `==.default`(stock$col1, vec) :
  longer object length is not a multiple of shorter object length
  </code></pre>
  
  <p>How do I delete all rows in data frame that are  present in the vector list. Please advice.</p>