title: How to find all values which only appear less than X times in a vector
body: <p>I have a vector, in this case a character vector. I want all the elements which only appear once in the vector, but the solution should be generalizable for limits other than 1. </p>
  
  <p>I can pick them manually if I use the <code>table</code> function. I thought that the solution would look something like </p>
  
  <pre><code>frequencies &lt;- table(myVector)
  myVector[??@frequencies &lt;= 1] 
  </code></pre>
  
  <p>But first of all, I don't know the slot name which will have to go into ??, and searches for documentation on the <code>table</code> object lead me to nowhere. </p>
  
  <p>Second, while <a href="http://stat.ethz.ch/R-manual/R-patched/library/base/html/table.html" rel="nofollow">the documentation for table()</a> says that it returns 'an object of class "table"', trying the above with some random word used instead of ??, I didn't get a "no such slot" error, but </p>
  
  <blockquote>
    <p>Error: trying to get slot "frequencies" from an object of a basic class ("function") with no slots</p>
  </blockquote>
  
  <p>which seems to indicate that the above won't function even if I knew the slot name. </p>
  
  <p>So what is the correct solution, and how do I get at the separate columns in a <code>table</code> when I need them? </p>