title: how to use stemDocument in R?
body: <p>update:</p>
  
  <p>Thanks for help. Check comments. Because of package version, I delete the tolower and it works. I just need to find another way to make it lower. </p>
  
  <p>============
  I am doing basic txt mining in with a list of document, everything goes on fine till I try to use <code>stemmDocument</code>.</p>
  
  <p>the <code>tm_map</code> I already done is  as following with <code>library(tm)</code></p>
  
  <pre><code>fbVec&lt;-VectorSource(data[,1])
  fbCorpus&lt;-Corpus(fb.vec)
  fbCorpus &lt;- tm_map(fbCorpus, tolower)
  fbCorpus &lt;- tm_map(fbCorpus, removePunctuation)
  fbCorpus &lt;- tm_map(fbCorpus, removeNumbers)
  fbCorpus &lt;- tm_map(fbCorpus, removeWords, stopwords("english"))
  fbCorpus &lt;- tm_map(fbCorpus, removeWords, "pr")
  fbCorpus &lt;- tm_map(fbCorpus, stripWhitespace)
  </code></pre>
  
  <p>The results from it is as following</p>
  
  <pre><code>[[1]]
  [1]  easy post position search resumes improvement searching resumes
  
  [[2]]
  [1]  easy use good candidiates improvement allow multiple emails sent 
  
  [[3]]
  [1]  applicants young kids absolutely sales experience waste time looking improvement applicants apply experience looking dont need kids just high school
  
  [[4]]
  [1]  abundance resumes
  </code></pre>
  
  <p>Then I tried to stem</p>
  
  <pre><code>library(SnowballC)    
  fbCorpus &lt;- tm_map(fbCorpus, stemDocument)
  </code></pre>
  
  <p>But the results is not as I image, it looks like only deal with the last word in a sentence, result as following:</p>
  
  <pre><code>[[1]]
  [1]  easy post position search resumes improvement searching resum
  
  [[2]]
  [1]  easy use good candidiates improvement allow multiple emails sent 
  
  [[3]]
  [1]  applicants young kids absolutely sales experience waste time looking improvement applicants apply experience looking dont need kids just high school
  
  [[4]]
  [1]  abundance resum
  </code></pre>
  
  <p>Is there anyone can help?</p>