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
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
[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
?
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
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
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
6 matches
Mail list logo