Re: [R] Exporting data to a text file

2008-08-06 Thread Don MacQueen
You could try using sink() instead of write.table() to append the clustering . write.table(myclara$data,"cluster.dat") sink("cluster.dat",append=TRUE) print( myclara$clustering ) sink() That will definitely append clustering to the file. -Don At 6:49 PM +0200 8/1/08, pacomet wrote: HI R users

Re: [R] Exporting data to a text file

2008-08-05 Thread Prof Brian Ripley
- On Mon, 8/4/08, pacomet <[EMAIL PROTECTED]> wrote: From: pacomet <[EMAIL PROTECTED]> Subject: Re: [R] Exporting data to a text file To: [EMAIL PROTECTED] Cc: r-help@r-project.org Received: Monday, August 4, 2008, 7:03 AM Hi John I don't get an error message but a warning w

Re: [R] Exporting data to a text file

2008-08-05 Thread John Kane
acomet <[EMAIL PROTECTED]> > Subject: Re: [R] Exporting data to a text file > To: [EMAIL PROTECTED] > Cc: r-help@r-project.org > Received: Monday, August 4, 2008, 7:03 AM > Hi John > > I don't get an error message but a warning > > > > write.table(myclara$clust

Re: [R] Exporting data to a text file

2008-08-04 Thread pacomet
.. .. ..$ : chr [1:14] "lon" "lat" "sst01" "sst02" ... - attr(*, "class")= chr [1:2] "clara" "partition" I can't output the two variables in two different files without any problem. Thanks 2008/8/1 John Kane <[E

Re: [R] Exporting data to a text file

2008-08-01 Thread John Kane
try str(myclara) to see what you have - a data frame , matrix etc Are you getting any error messages? I tried your write.table commands and they work okay. --- On Fri, 8/1/08, pacomet <[EMAIL PROTECTED]> wrote: > From: pacomet <[EMAIL PROTECTED]> > Subject: [R] Exporting d

[R] Exporting data to a text file

2008-08-01 Thread pacomet
HI R users With clara function I get a data frame (maybe this is not the exact word, I'm new to R) with the following variables: > names(myclara) [1] "sample" "medoids""i.med" "clustering" "objective" [6] "clusinfo" "diss" "call" "silinfo""data" I want to export