title: R text file and text mining...how to load data
body: <p>I am using the R package <code>tm</code> and I want to do some text mining.  This is one document and is treated as a bag of words.</p>
  
  <p>I don't understand the documentation on how to load a text file and to create the necessary objects to start using features such as....</p>
  
  <pre><code>stemDocument(x, language = map_IETF(Language(x)))
  </code></pre>
  
  <p>So assume that this is my doc "this is a test for R load" </p>
  
  <p>How do I load the data for text processing and to create the object x?</p>