View source: R/functions_utility.R
count_classes | 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.
count_classes(allpartitions)
allpartitions |
matrix containing all possible partitions for a nodeset |
integer(number of partitions with different group structures)
#find partitions first
n <- 6
all_partitions <- find_all_partitions(n)
# count classes
counts_partition_classes <- count_classes(all_partitions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.