title: How to extract counts as a vector from a table in R?
body: <p>I'm trying to write a function to extract the frequencies of this table:</p>
  
  <pre><code> 0  1  2  3  4  5  6  7
  30 22  9 12  2  5  1 16
  </code></pre>
  
  <p>So I want to get <code>c(30, 22, 9, 12, 2, 5, 1, 16)</code>.</p>
  
  <p>The table changes each time I run the function, so I need something that can extract the information from the table automatically, so I don't have write a c() function each time. </p>