getClust: Going from links to clusters

Description Usage Arguments Value

Description

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

Usage

1
getClust(pairs, preds, hash1, hash2, sizes = TRUE)

Arguments

pairs

pairs with 'preds' column, a binary indicator for whether the pair is linked after hierarchical clustering

preds

name of column with link, input as character, e.g. "minimax0.5"

hash1

name of column with first item in comparison, e.g. "image1"

hash2

name of column with second item in comparison, e.g. "image2"

sizes

whether to return cluster sizes or not, default TRUE

Value

data frame with three columns: 'image', the name of the image, 'cluster', the cluster number the image is a member of, and 'clusterSize', the size of that cluster


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