title: How to read.table() multiple files into a single table in R?
body: <p>I have filenames named <code>&lt;InputData&gt;.&lt;TestName&gt;.csv</code> and I'd like to make graphs for each test.  The best way I can see to do this is to make one R table for each TestName.  Each test produces the same columns of data, so I'd like to pull in all the data for each test into an R datatable with an extra column for the inputdata.  </p>
  
  <p>I'd like to do:</p>
  
  <pre><code>read.tables(c("B217.SE.csv", "C10.SE.csv"), sep=",")
  </code></pre>
  
  <p>produces (for example):</p>
  
  <pre><code>       Filename  col1   col2
  1   B217.SE.csv     1      2
  2   B217.SE.csv     2      4
  3   C10.SE.csv      3      1
  4   C10.SE.csv      4      5
  </code></pre>
  
  <p>What's the right way to do this?  Some existing function I don't know about?  Writing it out in the R language using a for loop?</p>