unlistCluInt {blockmodeling}R Documentation

Unlist a partition.

Description

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.

Usage

unlistCluInt(clu)

Arguments

clu

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

Value

The unlisted partition - one vector containing only integers.

See Also

clu, splitClu, unlistClu

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)

[Package blockmodeling version 1.1.5 Index]