Re: [R] Export multiple data files from R

2007-04-17 Thread Vladimir Eremeev
You didn't describe the exact format of the .gpr files. There are 32 heading lines in each file, which are now hidden from R community. You 'skip' 31 of them in read.table, and one more plays header ('header=T'). Since you are using read.table, your files are usual ascii files. You shoud use 'cat

[R] Export multiple data files from R

2007-04-16 Thread Jenny persson
Dear R-users, I have 10 data files in gpr format (dat1.gpr,Â…dat10.gpr). I want to read in these files one by one in R and then add one extra column (called log) to each data file as below