title: How do I convert a corpus data structure to be a transaction in sparse format structure in R
body: <pre><code>library(arules)
  library(arulesViz)
  library(datasets)
  data(Groceries)
  head(Groceries)
  transactions in sparse format with
   6 transactions (rows) and
   169 items (columns)
  </code></pre>
  
  <p>I want to use a structure in the above example, However my own data is in the corpus structure as I needed to do some precleaning of text - i.e. stemming, stopwords
  how do i convert my corpus data into a transaction object in sparse format so I can do some market basket analysis on it?
  when I try it I get an error:</p>
  
  <pre><code>Error in as(myCorpus_ed, "transactions") : 
    no method or default for coercing “VCorpus” to “transactions”
  </code></pre>