Re: [R] write every element of a variable into a separate text-file

2008-11-23 Thread Michael Dewey
At 13:39 21/11/2008, [EMAIL PROTECTED] wrote: Hello, what I want to do, is, to write every element of a variable into a separate text-file automatically: I think this may be FAQ 7.34 How can I save the result of each iteration in a loop into a separate file? My Variable: > wull [1] "Hal

Re: [R] write every element of a variable into a separate text-file

2008-11-21 Thread Jagat.K.Sheth
Your code isn't changing the filename Try this for(i in seq_along(wull)) write(wull[i], paste("C://Users//zuber//Documents//wull(",i,")",".txt",sep="")) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, November 21, 2008 7:

Re: [R] write every element of a variable into a separate text-file

2008-11-21 Thread Sarah Goslee
Well, you could read the R Data Import/Export manual. Or you could reread the help for write and figure out what the append argument does. Or you could reread the help for write and notice that it should write out your entire "variable" without requiring a loop. Sarah On Fri, Nov 21, 2008 at 8:39