title: Convert data frame to frequency table in R
body: <p>Using R, I converted a frequency table (created using the <code>table()</code> function) to a data-frame. My data frame now looks as follows:</p>
  
  <pre><code>            words       frequency
  1           'home'      1
  2           'paper'     5
  3           'letter'    6
  </code></pre>
  
  <p>Now I want to convert this data frame back into a <code>table()</code> object.</p>
  
  <p>How?</p>