unlistCluInt function

Unlist a partition.

Unlist a partition.

It is used to convert a partition by sets into a single "simple" partition. Simple partition is a partition of only one set, that is a vector where units with the same value are considered to belong to the same cluster. The partitions by sets is a list, where each element of a list is a "simple" partition that corresponds to one set. The function first converts all elements of the lists to integers, that makes sure that each set uses different integers and on the end uses unlist function on such list. UTF-8

unlistCluInt(clu)

Arguments

  • clu: A partition by sets, that is a list of "simple" partitions.

Returns

The unlisted partition - one vector containing only integers.

Examples

cluList<-list(c("a","b","a"),c("b","c","b","c")) unlistCluInt(cluList) cluList<-list(c(1,1,1,2,2,2),c(1,1,1,2,2,2,3,3)) unlistCluInt(cluList)

See Also

clu, splitClu, unlistClu

  • Maintainer: Aleš Žiberna
  • License: GPL (>= 2)
  • Last published: 2023-08-23

Useful links