matchContTable {coseq} | R Documentation |
Permute the columns of a contingency table comparing two clusterings to load the diagonal as much as possible.
matchContTable(table_1, table_2)
table_1 |
Partition from a first data clustering |
table_2 |
Partition from a second data clustering |
Permuted contingency table
## Generate arbitrary labels from two separate clustering results labels_1 <- sample(1:10, 1000, replace=TRUE) ## K=10 clusters labels_2 <- sample(1:8, 1000, replace=TRUE) ## K=8 clusters matchContTable(labels_1, labels_2)