checkHca: Check HCA consistency.

checkHcaR Documentation

Check HCA consistency.

Description

This function checks that the results of HCA is consistent. It prints info on key components.

Usage

checkHca(h, verb = TRUE, dbg = 0)

Arguments

h

hierarchical clustering (e.g. the result of hclust or mhclust).

verb

verbosity level

dbg

debug level

Value

A boolean value indicating whether h is valid or not.

Author(s)

Tomas Sieger, Karel Fiser

Examples

hGood<-hclust(dist(1:3))
checkHca(hGood)

hBad<-list(merge=rbind(c(-1,-2),c(-1,2)),height=1:2,order=1:3,method='fake-method',dist.method='fake-dist.method')
checkHca(hBad)

tsieger/mhca documentation built on June 5, 2023, 7:26 p.m.