Re: [R] Append to file in loop

2012-03-24 Thread R. Michael Weylandt
for(i in 1:100){ file.append(paste("file_", i, ".saam", sep = ""), "XFile.saam") } seems like it would work. Michael On Sat, Mar 24, 2012 at 10:42 AM, Luisin Galindo, PhD wrote: > My files are on disk and they are regular text files named > > file_1 file_2 file_3 file_4 and file_5 with exten

[R] Append to file in loop

2012-03-24 Thread Luisin Galindo, PhD
My files are on disk and they are regular text files named file_1 file_2 file_3 file_4 and file_5 with extension .saam The separator is sep='' (ie, white space) I want to append 'XFile' at the end of those files. XFile is also on disk. file.append("file_1.saam", "XFile.saam"); file.append("file