Dear Sir,
  Thanks a lot for your reply. I have some doubts as follows, please
clarify me...
I am using codes from your reply
(ck3 <- cutree(ag.ag, k = 3)) ##  In this step we are cutting the tress and
getting cluster assignments, on what basis you assigned k=3?
(ch6 <- cutree(as.hclust(ag.ag), h = 6)) ### In this step  what we are
doing? What is h=6?? In what basis you assigned this value?
stopifnot(identical(unname(ch6), ck3))  ## what we are doing here? Moreover
i got the error like this ERROR: identical(unname(ch6), ck3) is not TRUE

I tried lot in 'cluster' user manual but i couldn't able to find any answer
for my doubts. Please suggest good articles or manuals in this area for
more information, please.

Thanks in advance

Thanking you
yours sincerely,
Ramesh




On Wed, Apr 24, 2013 at 2:53 AM, Martin Maechler <maech...@stat.math.ethz.ch
> wrote:

> Well, you don't give much of an example....
> I'm replying CC to the R mailing list.  Please ask questions there, rather
> than adressing individuals for basic help.
>
>
> Here is one;  does it answer your question ?
>
> data(agriculture)
> ag.ag <- agnes(agriculture)
> class(ag.ag)
> pltree(ag.ag) # the dendrogram, if you want to see it
>
> ## cut the dendrogram -> get cluster assignments:
> (ck3 <- cutree(ag.ag, k = 3))
> (ch6 <- cutree(as.hclust(ag.ag), h = 6))
> stopifnot(identical(unname(ch6), ck3))
>
>
>
> On Tue, Apr 23, 2013 at 6:37 PM, Ramesh krishnan Ramasamy <
> ramesh...@gmail.com> wrote:
>
>> Dear sir,
>>   I have large dataset of around  5,000 entries, so, i cant draw
>> hierarchical cluster and see the position of accession in the cluster.  So,
>> is it possible to assign cluster id to the acc automatically in the cluster
>> package? For example
>>
>> cluster Id   no .....
>> I        .......
>> II
>> III
>> I am very new to cluster package, so please help me to do this.
>>
>> Thanking you
>>
>> Regards
>> Ramesh
>>
>> --
>> Ramesh krishnan R
>> Junior Research Fellow
>> Molecular Biology Lab-1
>> Central Sericultural Research & Training Institute
>> Ministry of  Textiles, Govt. of India
>> Srirampura, Manadavadi road
>> Mysore - 570 008
>>
>> Mobile: +91 8951696997, +91 7502533038
>> Email: ramesh...@gmail.com
>>
>>
>


-- 
Ramesh krishnan R
Junior Research Fellow
Molecular Biology Lab-1
Central Sericultural Research & Training Institute
Ministry of  Textiles, Govt. of India
Srirampura, Manadavadi road
Mysore - 570 008

Mobile: +91 8951696997, +91 7502533038
Email: ramesh...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to