title: How to analyse the data files after reading multiple files in R
body: <p>I'm trying to make a loop in R. Loading the files works, but now I want to use the different datafiles and analyse them.  I'd like to do this in the same loop. It has to be something like:</p>
  
  <pre><code>setwd("d:/myRfiles/") 
  
  files &lt;- list.files()       
  numfiles &lt;- length(files)     
  
  for (i in 1:numfiles)     
  {    
    name&lt;-paste("",files[i],sep="")    
    assign(name, read.csv(files[i],header=FALSE))      
    # So far so good     
    dim(dataset)  
    head(dataset)    
    tail(dataset)   
  }  
  </code></pre>
  
  <p>I can't use "name" for the dataset cause it reads it as a value. </p>
  
  <p>Thank you.</p>