getHcluster: Hierarchical clustering given pairwise distances

Description Usage Arguments Value

View source: R/forClustering.R

Description

Hierarchical clustering given pairwise distances

Usage

1
getHcluster(allPairwise, pairColNums, distSimCol, linkage, myDist = TRUE)

Arguments

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

Value

tree (dendrogram) after hierarchical clustering


xhtai/clusterTruster documentation built on May 22, 2020, 10:56 a.m.