title: How to get the list of all the stemmed words along with its original formafter doing stemDocument in R
body: <p>I am trying to get the list of all the stemmed words along with its original form.</p>
  
  <p>here is an example </p>
  
  <pre><code>library(tm)
  text &lt;- c("Very Impressed with the shipping time, it arrived a few days earlier than expected", "it was very helpful","It was a wonderful experience")
  corpus&lt;-Corpus(VectorSource(text))
  corpus&lt;-tm_map(corpus,stemDocument)
  </code></pre>
  
  <p>I am looking for answer like this in data frame</p>
  
  <pre><code> orginal_word   stemmed 
   Impressed      Impress 
   shipping        ship
   very            veri
   helpful         help
   wonderful       wonder
   experience      experi
  </code></pre>