title: no applicable method for 'tm_map' applied to an object of class "character"
body: <p>My data looks like this:</p>
  
  <pre><code>1. Good quality, love the taste, the only ramen noodles we buy but they're available at the local Korean grocery store for a bit less so no need to buy on Amazon really.
  2. Great flavor and taste. Prompt delivery.We will reorder this and other products from  this manufacturer.
  3. Doesn't taste good to me.
  4. Most delicious ramen I have ever had. Spicy and tasty. Great price too.
  5. I have this on my subscription, my family loves this version. The taste is great by itself or when we add the vegetables and.or meats.
  6. The noodle is ok, but I had better ones.
  7. some day's this is lunch and or dinner  on second case
  8. Really good ramen!
  
  (skip)
  </code></pre>
  
  <p>I organize this data (number elimination, lowercase conversion, removal of special characters)</p>
  
  <p>I want to create a matrix and sna graph.</p>
  
  <p>However, there is a problem with the data cleanup process. </p>
  
  <pre><code>Error in UseMethod("tm_map", x) : 
    no applicable method for 'tm_map' applied to an object of class "character"   
  </code></pre>
  
  <p>What should I do?</p>
  
  <pre><code>docs&lt;- readLines("C:/Users/xxx/Desktop/3694.txt", encoding = "UTF-8")
  
  library(tm)
  docs &lt;- tm_map(docs,removePunctuation)     
  docs &lt;- tm_map(docs, tolower)   
  docs &lt;- tm_map(docs, PlainTextDocument)
  DocsCopy &lt;- docs
  </code></pre>