Hierarchical cluster analysis - cluster extraction

Hello all,
Currently, I am working with Hierarchical cluster analysis in R for my Master's thesis program. I have already performed the HCA in R, but it is found difficult to extract the components in the clusters. I would like to receive the code to execute Hierarchical cluster analysis, by which I can also extract the cluster components.

I would really encourage you to review the following guide, FAQ: Tips for writing R-related questions.
For example, the guide emphasizes asking coding questions with formatted code-chunks and a reprex.

You may have noticed folks here requesting minimal reprexes, that's because asking questions this way saves answerers a lot of time.

Reproducible Examples:

  • help make your question clear and replicable
  • increases the probability folks will reach out and try to help,
  • reduces the number of back-and-forths required to understand the question,
  • and makes your question and suggested solutions more useful to folks in the future researching similar problems.