count_classes function

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.

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.

count_classes(allpartitions)

Arguments

  • allpartitions: matrix containing all possible partitions for a nodeset

Returns

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)
  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10