Re: [R] Save intermediate result in a same file

2013-10-03 Thread Greg Snow
Open a connection to the file (and leave it open), then just use the cat function with the file option. Or use append=TRUE argument to cat. On Tue, Oct 1, 2013 at 8:13 AM, Matthew wrote: > Hello everybody, > > i have to save a 100 iteration computation in a file every 5 iterations > until the

[R] Save intermediate result in a same file

2013-10-01 Thread Matthew
Hello everybody, i have to save a 100 iteration computation in a file every 5 iterations until the end. I first give a vector A of 100 elements for the 100 iterations and i want to update A every 5 iterations. I use "save" but it doesn't work. Someone has an idea, i need a help Cheers. -