count_classes: Function to count the number of partitions with a certain...

View source: R/functions_utility.R

count_classesR 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)


ERPM documentation built on May 29, 2024, 10:05 a.m.