title: returning different data frames in a function - R
body: <p>Is it possible to return 4 different data frames from one function?</p>
  
  <p>Scenario:</p>
  
  <p>I am trying to read a file, parse it, and return some parts of the file.</p>
  
  <p>My function looks something like this:</p>
  
  <pre><code>parseFile &lt;- function(file){
  
       carFile &lt;- read.table(file, header=TRUE, sep="\t")
  
       carNames &lt;- carFile[1,]
       carYear  &lt;- colnames(carFile)
  
       return(list(carFile,carNames,carYear))
  }
  </code></pre>
  
  <p>I don't want to have to use list(carFile,carNames,carYear).  Is there a way return the 3 data frames without returning them in a list first?    </p>