title: Reading a CSV file organized horizontally
body: <p>In R, is there a function like <code>read.csv</code> that reads in files where the headers are on the left (or right) as opposed to the top and the data is organized from left to right?</p>
  
  <p>So the data would look like:</p>
  
  <pre><code>var1,1,2,3,4,5
  </code></pre>
  
  <p>Looking at the documentation for <code>read.table</code> and <code>read.csv</code>, nothing seems to pop out. The best option I see using those functions is to use <code>read.table</code> and then construct another table whose columns are the rows of the original data and so forth. </p>