title: How to subset a table object in R?
body: <p>How can I subset a table based on values and return those values? This returns just indices:</p>
  
  <pre><code>with(chickwts, table(feed))
  with(chickwts, table(feed)) &gt; 11
  which(with(chickwts, table(feed)) &gt; 11)
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>&gt; with(chickwts, table(feed))
  feed
     casein horsebean   linseed  meatmeal   soybean sunflower 
         12        10        12        11        14        12 
  &gt; with(chickwts, table(feed)) &gt; 11
  feed
     casein horsebean   linseed  meatmeal   soybean sunflower 
       TRUE     FALSE      TRUE     FALSE      TRUE      TRUE 
  &gt; which(with(chickwts, table(feed)) &gt; 11)
     casein   linseed   soybean sunflower 
          1         3         5         6 
  </code></pre>