title: How to remove a single non unique element from a list or vector in r
body: <p>What im looking for is a efficient way to remove a single nonunique element.</p>
  
  <p>Say i have the vector:</p>
  
  <pre><code>c(1,1,1,2,2,3,3,4)
  </code></pre>
  
  <p>and i want to remove:</p>
  
  <pre><code>c(1,2)
  </code></pre>
  
  <p>such so that the result would be</p>
  
  <pre><code>c(1,1,2,3,3,4)
  </code></pre>
  
  <p>Im sure its very simple but im at a loss. Sound out!</p>