supported_methods: Supported Linkage Methods

View source: R/supported_methods.R

supported_methodsR Documentation

Supported Linkage Methods

Description

Lists all choices of a linkage method currently supported in hclust1d.

Usage

supported_methods()

Value

A character vector with currently supported linkage methods.

Examples


if ("median" %in% supported_methods()) {    # the condition under if evaluates to TRUE
   dendrogram <- hclust1d(rnorm(100), method = "median")
   plot(dendrogram)
} else {
   stop("Error: median linkage method not supported in hclust1d")
}


hclust1d documentation built on Aug. 7, 2023, 5:12 p.m.