supported_dist.methods {hclust1d}R Documentation

Supported Distance Methods

Description

Lists all choices of a distance method currently supported in hclust1d via stats::dist call.

Usage

supported_dist.methods()

Value

A character vector with currently supported distance methods.

Examples


if ("minkowski" %in% supported_dist.methods()) {    # the condition under if evaluates to TRUE
   dendrogram <- hclust1d(dist(rnorm(100), method = "minkowski", p = 3))
   plot(dendrogram)
} else {
   stop("Error: minkowski distance method not supported in hclust1d")
}


[Package hclust1d version 0.1.1 Index]