Exporting data from R after getting results

Please post a reproducible example (reprex) of the code you use to make the Dendrogram. Be sure to include the library() calls for the packages you use.