title: How do you read multiple .txt files into R?
body: <p>I'm using R to visualize some data all of which is in .txt format. There are a few hundred files in a directory and I want to load it all into one table, in one shot. </p>
  
  <p>Any help?</p>
  
  <p>EDIT:</p>
  
  <p>Listing the files is not a problem. But I am having trouble going from list to content. I've tried some of the code from <a href="https://stat.ethz.ch/pipermail/r-help/2003-April/032077.html" rel="noreferrer">here</a>, but I get a bug with this part:</p>
  
  <pre><code>all.the.data &lt;- lapply( all.the.files,  txt  , header=TRUE)
  </code></pre>
  
  <p>saying</p>
  
  <pre><code> Error in match.fun(FUN) : object 'txt' not found
  </code></pre>
  
  <p>Any snippets of code that would clarify this problem would be greatly appreciated. </p>