Provides a new generic function to coerce objects to dendrograms with
stats::as.dendrogram() as the default. Additional methods for
hclust, hdbscan and reachability objects are provided.
as.dendrogram(object, ...)# S3 method for default
as.dendrogram(object, ...)
# S3 method for hclust
as.dendrogram(object, ...)
# S3 method for hdbscan
as.dendrogram(object, ...)
# S3 method for reachability
as.dendrogram(object, ...)
the object
further arguments
Coersion methods for hclust, hdbscan and reachability objects to dendrogram are provided.
The coercion from hclust is a faster C++ reimplementation of the coercion in
package stats. The original implementation can be called
using stats::as.dendrogram().
The coersion from hdbscan builds the non-simplified HDBSCAN hierarchy as a dendrogram object.