align {truecluster}R Documentation

Cluster aligning/comparing

Description

Aligns or compares objects that are clusterings or contain clusterings

Usage

align.default(obj, refobj, method = c("heuristic", "truematch", "tracemax")[1], ...)
compare.default(obj, method = c("heuristic", "truematch", "tracemax")[1], ...)

Arguments

obj object being or containing a clustering
refobj an object which defines how to align
obj2 an object to compare with (columns of table)
method one of c("heuristic","truematch","tracemax"), see matchindex
... further arguments depending on class method

Value

Function align returns an aligned object (clustering or object containing a clustering) Function compare returns an aligned table

Author(s)

Jens Oehlschlägel

See Also

matchindex

Examples

 x <- c(1,1,2,2,3,3)
 y <- c(2,2,3,3,1,1)
 table(x, y)
 align(y, x)
 table(x, align(y,x))
 compare(x, y)

[Package truecluster version 0.3 Index]