View source: R/supported_methods.R
supported_methods | R Documentation |
Lists all choices of a linkage method currently supported in hclust1d
.
supported_methods()
A character vector with currently supported linkage methods.
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.