getClust: Going from links to clusters

Description Usage Arguments Value

View source: R/forEvaluation.R

Description

Given pairwise links as generated by 'makeLinkCol()', produce a list of individual items and their cluster membership

Usage

1
getClust(allPairwise, linkCol, pairColNums)

Arguments

allPairwise

name of data frame containing all pairwise comparisons. This needs to have at least four columns, one representing the first item in the comparison, one representing the second item, and one representing whether the pair is linked in the given clustering. These are enumerated in the next two parameters.

linkCol

name of column in 'allPairwise' with links (a binary indicator for whether the pair is linked after hierarchical clustering), input as character, e.g. "minimax0.4"

pairColNums

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

Value

data frame with two columns: 'item', the name of the item, and 'cluster', the cluster number the item is a member of


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