align {truecluster} | R Documentation |
Aligns or compares objects that are clusterings or contain clusterings
align.default(obj, refobj, method = c("heuristic", "truematch", "tracemax")[1], ...) compare.default(obj, method = c("heuristic", "truematch", "tracemax")[1], ...)
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 |
Function align
returns an aligned object (clustering or object containing a clustering)
Function compare
returns an aligned table
Jens Oehlschlägel
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)