canClu {blockmodeling} | R Documentation |
It is used to convert any partition to a canonical partition. A canonical partition is a partition where the first unit is in cluster 1, the next unit that is not in cluster 1 in in cluster 2 and so on. So if we would take first appearances of clusters in the order they appear in the partition vector, we would get integers from 1 to the number of clusters.
canClu(clu)
canCluUniqe(cluList)
clu |
A partition - a vector or a list of vectors/partitions. |
cluList |
A list of partitions(vectors). |
For function canClu
- a canonical partition or a list of such partitions.
For function canCluUniqe
- A list of unique canonical partitions.
clu<-c(3,2,2,3,1,2)
canClu(clu)