count_classes {ERPM}R Documentation

Function to count the number of partitions with a certain group size structure, for all possible group size structure. Function to use after calling the "find_all_partitions" function.

Description

Function to count the number of partitions with a certain group size structure, for all possible group size structure. Function to use after calling the "find_all_partitions" function.

Usage

count_classes(allpartitions)

Arguments

allpartitions

matrix containing all possible partitions for a nodeset

Value

integer(number of partitions with different group structures)

Examples

#find partitions first
n <- 6
all_partitions <- find_all_partitions(n)
# count classes
counts_partition_classes <- count_classes(all_partitions)


[Package ERPM version 0.2.0 Index]