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 John Kane
: 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$clustering,cluster.dat,append=TRUE) Warning message: In write.table(myclara$clustering

Re: [R] Exporting data to a text file

2008-08-05 Thread Prof Brian Ripley
[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 write.table(myclara$clustering,cluster.dat,append

Re: [R] Exporting data to a text file

2008-08-04 Thread pacomet
? 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 data to a text file To: r-help@r-project.org Received: Friday, August 1, 2008, 12:49 PM HI R users With clara

[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 medoidsi.med clustering objective [6] clusinfo diss call silinfodata I want to export clustering and data

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 data to a text file To: r