Re: [R] Help to write to a file

2011-10-11 Thread Sergio René Araujo Enciso
Ok, I see my mistake, just did as you suggest and works. Thanks for the answer people Best, Sergio Rné El 11 de octubre de 2011 19:03, Sergio René Araujo Enciso < araujo.enc...@gmail.com> escribió: > Dear all: > > I am having some problems to use the function "sink()". Basically I am > doing a

Re: [R] Help to write to a file

2011-10-11 Thread Duncan Murdoch
On 11/10/2011 1:03 PM, Sergio René Araujo Enciso wrote: Dear all: I am having some problems to use the function "sink()". Basically I am doing a loop over two files which contain unit-root variables. Then on a loop, I extract every i element of both files to create an object called z. If z meets

Re: [R] Help to write to a file

2011-10-11 Thread David Winsemius
On Oct 11, 2011, at 1:03 PM, Sergio René Araujo Enciso wrote: Dear all: I am having some problems to use the function "sink()". Basically I am doing a loop over two files which contain unit-root variables. Then on a loop, I extract every i element of both files to create an object called z

Re: [R] Help to write to a file

2011-10-11 Thread R. Michael Weylandt
Untested, does adding a print() around summary() get it done? Michael On Oct 11, 2011, at 1:03 PM, Sergio René Araujo Enciso wrote: > Dear all: > > I am having some problems to use the function "sink()". Basically I am doing > a loop over two files which contain unit-root variables. Then on a

Re: [R] Help to write to a file

2011-10-11 Thread Sarah Goslee
Hi, Inside a loop, you must explicitly wrap your summary() command and anything else from which you expect output in a print() command. Sarah 2011/10/11 Sergio René Araujo Enciso : > Dear all: > > I am having some problems to use the function "sink()". Basically I am doing > a loop over two file

[R] Help to write to a file

2011-10-11 Thread Sergio René Araujo Enciso
Dear all: I am having some problems to use the function "sink()". Basically I am doing a loop over two files which contain unit-root variables. Then on a loop, I extract every i element of both files to create an object called z. If z meets some requirements, then I perform a unit root test (ADF t