Description Usage Arguments Value
View source: R/forClustering.R
Hierarchical clustering given pairwise distances
1 | getHcluster(allPairwise, pairColNums, distSimCol, linkage, myDist = TRUE)
|
allPairwise |
name of data frame containing all pairwise comparisons. This needs to have at least three columns, one representing the first item in the comparison, one representing the second item, and the last representing a similarity or distance metric. These are enumerated in the next two parameters. |
pairColNums |
vector of length 2 indicating the column numbers in 'allPairwise' of 1. item 1 in comparison, 2. item 2 in comparison |
distSimCol |
name of column in 'allPairwise' indicating distances or similarities, input as character, e.g. "l2dist". If this is a similarity and not a difference, input 'myDist' parameter to be FALSE |
linkage |
one of "single", "complete", "average", "centroid", "minimax" |
myDist |
is 'distSimCol' a distance or similarity measure? Default TRUE, i.e. distance measure |
tree (dendrogram) after hierarchical clustering
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.