makeLinkCol: Generate binary column representing links between pairs,...

Description Usage Arguments Value

Description

Generate binary column representing links between pairs, given dendrogram and cut specification

Usage

1
makeLinkCol(allPairwise, pairColNums, htree, numClust, linkage)

Arguments

allPairwise

name of data frame containing all pairwise comparisons. This needs to have at least two columns, one representing the first item in the comparison, and one representing the second item.

pairColNums

vector of length 2 indicating the column numbers of 1. item 1 in comparison, 2. item 2 in comparison

htree

tree (dendrogram) after hierarchical clustering, returned by 'getHcluster'

numClust

number of desired clusters in clustering, can be a number from 1 to n, where n is the number of items to be clustered

linkage

one of "single", "complete", "average", "centroid", "minimax"

Value

binary vector representing whether links exist between pairs in 'allPairwise'


xhtai/cartridges documentation built on June 1, 2019, 2:58 p.m.