title: R: find most frequent group of words in corpus
body: <p>Is there an easy way how to find not only most frequent terms, but also expressions (so more than one word, groups of words) in text corpus in R?</p>
  
  <p>Using the tm package, I can find most frequent terms like this:</p>
  
  <pre><code>tdm &lt;- TermDocumentMatrix(corpus)
  findFreqTerms(tdm, lowfreq=3, highfreq=Inf)
  </code></pre>
  
  <p>I can find associated words to the most frequent words using <code>findAssocs()</code> function, so I could manually group these words. But how can I find the number of occurrences of these groups of words in corpus?</p>
  
  <p>Thx</p>