Re: [R] Adding a header after the file is written

2010-05-03 Thread steven mosher
thanks.. worked On Mon, May 3, 2010 at 3:24 PM, Ted Harding wrote: > On 03-May-10 21:19:34, steven mosher wrote: > > The situation arises where I open a file to write a data.frame > > to it. with write.table. > > > > multiple lines are written to the file and the file is kept in > > Append=TRUE

Re: [R] Adding a header after the file is written

2010-05-03 Thread steven mosher
Ok I will try that. I think I set it to False when I tried it the first time, maybe that was my mistake On Mon, May 3, 2010 at 3:28 PM, Ista Zahn wrote: > Hi Steve, > I think you just need to set col.names = FALSE (instead of col.names > =NULL) on subsequent writes. > > -Ista > > On Mon, May 3,

Re: [R] Adding a header after the file is written

2010-05-03 Thread Ista Zahn
Hi Steve, I think you just need to set col.names = FALSE (instead of col.names =NULL) on subsequent writes. -Ista On Mon, May 3, 2010 at 5:19 PM, steven mosher wrote: > The situation arises where I open a file to write a data.frame to it. with > write.table. > > multiple lines are written to the

Re: [R] Adding a header after the file is written

2010-05-03 Thread Ted Harding
On 03-May-10 21:19:34, steven mosher wrote: > The situation arises where I open a file to write a data.frame > to it. with write.table. > > multiple lines are written to the file and the file is kept in > Append=TRUE > mode. > > If one sets the col.names to the names of the variables being > wri

[R] Adding a header after the file is written

2010-05-03 Thread steven mosher
The situation arises where I open a file to write a data.frame to it. with write.table. multiple lines are written to the file and the file is kept in Append=TRUE mode. If one sets the col.names to the names of the variables being written, you have output that looks like this... name1 name2 na