title: Error trying USE.NAMES in lapply
body: <p>I'm trying to use lapply to create a list of dataframes, as demonstrated in this answer: <a href="https://stackoverflow.com/a/17197201/3843046">https://stackoverflow.com/a/17197201/3843046</a></p>
  
  <p>My data is in the form of tab separated values, so I have tried this:</p>
  
  <pre><code>temp &lt;- list.files(pattern = "*.txt", full.names = TRUE)
  Fresh1 &lt;- lapply(temp,read.table,sep="\t",skip=21,USE.NAMES = TRUE)
  </code></pre>
  
  <p>And I get this error when running the second line:</p>
  
  <pre><code>Error in FUN(c("./AB5 025.txt", "./AB5 05.txt", "./AB5 1.txt", "./AB5 2.txt",  : 
    unused argument (USE.NAMES = TRUE)
  </code></pre>
  
  <p>I need to somehow keep the data frames in the list connected with the files they are originating from. Can someone explain how I am misusing USE.NAMES, or if there is another way using lapply or some other method that would perform the same purpose?</p>