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
>
>

        [[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