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
- 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
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
..
.. ..$ : 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
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
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
6 matches
Mail list logo