title: Delete outliers automatically of a calculated agglomerative hierarchical clustering data
body: <p>in the cluster analysis the outliers of a dataset can be easily identified by the single-linkage method. Now I would like to remove the outliers automatically. My idea is to remove the data which exceed a specified distance value. Here is my code with the example data of mtcars:</p>
  
  <pre><code>library(cluster)
  library(dendextend)
  cluster&lt;-agnes(mtcars,stand=FALSE,method="single")
  dend = as.dendrogram(cluster)
  </code></pre>
  
  <p>In the <a href="https://i.stack.imgur.com/wZoOz.png" rel="nofollow noreferrer">Plot</a> you can see the resulting dendrogram. The last 4 cars ("Duster 360", "Camaro Z28", "Ford Pantera L", "Maserati Bora") are identified outliers so I would like to remove their hole rows(of the dataset mtcars). How can I do it automatically? E.g. remove the rows which height is above 70? I've tried a lot of possibilities to remove outliers but they did not seem to be applicable to my data.</p>
  
  <p>Thanks a lot!</p>