Consensus dendogram help?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Consensus dendogram help?

david v-2
Hello,
The follwing code generates 1000 dendograms from 1000 input binary matrices.
I dont't know how to generate a consensus dendogram from the 1000.
Can you help me ?

#code
library(ade4)
library(cluster)
library(stats)

for (i in 1:1000) {
#read each file
data<-read.table(i,header=FALSE,sep="\t",row.names=1)
dis<-dist.binary(data,method=5,diag=TRUE)
clust<-hclust(dd)
dend<-as.dendrogram(clust)
}
Thanks for your help.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html