title: How to make R output text details about a dendrogram object?
body: <p>Please see my previous question for details relating to test data and commands used to create a dendrogram: <a href="https://stackoverflow.com/questions/31441846/using-r-to-cluster-based-on-euclidean-distance-and-a-complete-linkage-metric-to">Using R to cluster based on euclidean distance and a complete linkage metric, too many vectors?</a></p>
  
  <p>Here is a quick summary of my commands to make the dendrogram:</p>
  
  <pre><code>un_exprs &lt;- as.matrix(read.table("sample.txt", header=TRUE, sep = "\t", row.names = 1, as.is=TRUE))
  exprs &lt;- t(un_exprs)
  eucl_dist=dist(exprs,method = 'euclidean')
  hie_clust=hclust(eucl_dist, method = 'complete')\
  dend &lt;- as.dendrogram(hie_clust)
  plot(dend)
  </code></pre>
  
  <p>This makes a very nice dengrogram plot. However, lets say this dendrogram has 2 clusters... I want to get a text list of each element belonging to each of the 2 clusters. I'm assuming this is trivial, but I don't have enough experience with R for this to be intuitive. Thanks!</p>