title: Extract total frequency of words from vector in R
body: <p>This is the vector I have: </p>
  
  <pre><code> posts = c("originally by: cearainmy only concern with csm is they seem a bit insulated from players.  they have private message boards where it appears most of their work goes on.  i would bet they are posting more there than in jita speakers corner.  i think that is unfortunate because its hard to know who to vote for if you never really see what positions they hold.  its sort of like ccp used to post here on the forums then they stopped.  so they got a csm to represent players and use jita park forum to interact.  now the csm no longer posts there as they have their internal forums where they hash things out.  perhaps we need a csm to the csm to find out what they are up to.i don't think you need to worry too much. the csm has had an internal forum for over 2 years, although it is getting used a lot more now than it was. a lot of what goes on in there is nda stuff that we couldn't discuss anyway.i am quite happy to give my opinion on any topic, to the extent that the nda allows, and i" , "fot those of you bleating about imagined nda scandals as you attempt to cast yourselves as the julian assange of eve, here's a quote from the winter summit thread:originally by: sokrateszday 3post dominion 0.0 (3hrs!)if i had to fly to iceland only for this session i would have done it. we had gathered a list of items and prepared it a bit. important things we went over were supercaps, force projection, empire building, profitability of 0.0, objectives for small gangs and of course sovereingty.the csm spent 3 hours talking to ccp about how dominion had changed 0.0, and the first thing on sokratesz's list is supercaps. its not hard to figure out the nature of the discussion.on the other hand, maybe you're right, and the csm's priority for this discussion was to talk about how underpowered and useless supercarriers are and how they needed triple the ehp and dps from their current levels?(it wasn't)"
  </code></pre>
  
  <p>I want a <code>data frame</code> as a result, that would contain words and the frequecy of times they occur.</p>
  
  <p>So result should look something like:</p>
  
  <pre><code>word   count
  a        300
  and      260
  be       200
  ...      ...
  ...      ...
  </code></pre>
  
  <p>What I tried to do, was use <code>tm</code></p>
  
  <pre><code>corpus &lt;- VCorpus(VectorSource(posts))
  corpus &lt;-tm_map(corpus, removeNumbers)
  corpus &lt;-tm_map(corpus, removePunctuation)
  m &lt;- DocumentTermMatrix(corpus)
  </code></pre>
  
  <p>Running <code>findFreqTerms(m, lowfreq =0, highfreq =Inf )</code> just gives me the words, so I understand its a sparse matrix, how do I extract the words and their frequency?</p>
  
  <p>Is there a easier way to do this, maybe by not using <code>tm</code> at all?</p>