title: creating corpus from multiple txt files
body: <p>I have multiple txt files, I want to have a tidy data. To do that first I create corpus ( I am not sure is it true way to do it). I wrote the following code to have the corpus data. </p>
  
  <pre><code>folder&lt;-"C:\\Users\\user\\Desktop\\text analysis\\doc"
  list.files(path=folder) 
  filelist&lt;- list.files(path=folder, pattern="*.txt")
  paste(folder, "\\", filelist)
  filelist&lt;-paste(folder, "\\", filelist, sep="")
  typeof(filelist)
  a&lt;- lapply(filelist,FUN=readLines)
  corpus &lt;- lapply(a ,FUN=paste, collapse=" ") 
  </code></pre>
  
  <p>When I check the <code>class(corpus)</code> it returns <code>list</code>. From that point how can I create  tidy data? </p>