search for: source_tags_vec

Displaying 1 result from an estimated 1 matches for "source_tags_vec".

2012 Mar 29
2
hclust and plot functions work, cutree does not
Hi, I have the distance matrix computed and I feed it to hclust function. The plot function produces a dense dendrogram as well. But, the cutree function applied does not produce the desired list. Here is the code x=data.frame(similarity_matrix) colnames(x) = c(source_tags_vec) rownames(x) = c(source_tags_vec) clust_tree=hclust(as.dist(x),method="complete") plot(clust_tree) cutree(clust_tree,k=1:5) Similarity matrix is a symmetric matrix. I really thank for any input on this. [[alternative HTML version deleted]]