title: R read csv with a custom factor
body: <p>Is it possible to read csv files in R and specify the factor levels?</p>
  
  <p>Suppose I have the following csv:</p>
  
  <pre><code>factor1,factor2
  0,1
  1,0
  </code></pre>
  
  <p>with the following factor:</p>
  
  <pre><code>factor(c('dead', 'alive'))
  </code></pre>
  
  <p><code>colClasses</code> doesn't really work as it names the levels 0 and 1 instead of a custom factor.</p>