title: R read files with for loop
body: <p>I just want to use use 10 files in R. For each I want to calculate something.
  Exp. file:
  stat1_pwg1.out
  stat23_pwg2.out
  ..
  stat45_pwg10.out</p>
  
  <p>I try this:</p>
  
  <pre><code>for (i in 1:10){
  Data=paste("../XYZ/*_pwg",i,".out",sep="")
  line=read.table(Data,head=T)
  }
  </code></pre>
  
  <p>But it does not work? Any hinds?</p>